I had a problem using 2 VideoViews on Android.
I know that I can't use 2 VideoViews at the same time.
Here is my workflow.
- Create 2 videoViews.
- Hide 1 of them.
- Prefetch the first videoView.
- Play the first VideoView.
- In a different thread I prefetch the second video
- In some point I switch the videoViews.
- The second Video is working fine.
- When the second video is completed then I switch to the first video.
- The video starts playing from beginning instead of the last state of the first video.
I tried to get the current time and save it before the switch and then when the first video view comes back then I use seekTo(LastCurrenttime), but the buffer is gone (before last currentTime).
do you know if the buffer is static or if the videoViews use only one buffer?
Why does the videoView not save the last state of the videView? ((currentTime or the buffer state?
Is there a way to do this without doing the seekTo function?