I am trying to put a canvas over a VideoView. On this canvas, I would like to be able to draw images (or rectangles, lines, etc.).
I have the following snippet in my xml file.
<VideoView android:id="@+id/videoplayer" android:layout_width="fill_parent" android:layout_height="wrap_content" />
Again, my goal is to have a canvas over this VideoView so that I can post images to the canvas.
So, I would ultimately have images superimposed on the video. I would also like to be able to overlay rectangles and other elements.
Any help would be greatly appreciated! It was a lot harder than I thought!
java android image
High schooler
source share