I managed to play several videos on the same screen in circles, I added TextureViews to the ListView with a basic adapter, which is very common, and I created IjkMediaPlayer ( IjkMediaplay github ) for each kind of texture. I reused textureview in the getView () callback of the BaseAdapter, after calling getView (), I stop the previous video and play the new video.
This works great in most cases, but sometimes TextureView displays some frames that do not belong to the current video, displaying frames for a very short time during playback just like a flash.
With an effort, I finally found where the strange shots came from the video that plays outside the screen. Strange frames will not appear if I put forward a list to display an external texture pattern.
I have a video recording to show the scene, in the video you will see that 2 videos are played in a circular manner, and sometimes a strange frame appears. I affirm that the strange frame (the white phone on the table in the frame) is from the video below, which is played off-screen. click to download video
Is this a TextureView bug on Android and how to avoid a weird game? Who can give me some advice?
source share