Itβs not a question of playing two separate videos in two separate video ads in one action.
I was asked to see if an action could be created using a single VideoView. When a user opens an event, they are prompted to select a base video, and then select a second video. Both videos will play in the same VideoView at the same time, but the base video will have alpha 255, and the second video will have alpha 150.
For testing, however, the video files located on the phone will be executed.
At this time, I was able to create only one video in VideoView.
I thought that if I created my own VideoView class, I could override the onDraw function and somehow capture the video frame from the second video, apply alpha, and then redraw it on top of the first VideoView canvas, but I donβt know where to start.
My other concern in this process is the amount of memory used to simultaneously play two videos in one VideoView, as well as the processing necessary to apply alpha and then redraw it without sacrificing performance or video playback.
I'm not sure where to start or how best to approach this and, if possible, was hoping for some guidance on using methods or objects.
I am developing a demo application to show a client on an Android 2.2 system using Eclipse. At the moment, I do not plan to target higher systems, since the demo phone is running Android 2.2.
source share