I'm loading an mp4 video from external storage into a videoview in every activity. In the first activity, the video is perfect, in the second activity, the video is garbled, and then in the third activity, the video is perfect again. Do I need to somehow clean up the videoview before loading a new activity? The video is consistently garbled following a clear video, and consistently clear after a garbled video.
I tried setting the onpreparedlistener and then starting the mediaplayer in the onprepared method, but every other video still remains garbled. However, when I break at the onprepared method, the video from the previous activity is still visible and running only in the cases where the new video is garbled. When the new activity blacks out the old video, the new video is not garbled.
It seems like the video is persisting from the previous activity to the new activity every other time. I'm confused.