[Android] [MediaPlayer] Change surface overview

When media playback ends, is it possible to change the appearance of the surface without preparing the media again?

According to my experiment, he always unloads the next magazine, what's the point of this?

08-18 01:55:23.345: W/BufferQueue(436): [SurfaceView] cancelBuffer: BufferQueue has been abandoned! 08-18 01:55:23.345: W/BufferQueue(436): [SurfaceView] cancelBuffer: BufferQueue has been abandoned! ... 

In my case, this method sometimes leads to the death of the mediaser.
It was unstable. When playback is complete, what is the right way to change the surface view without preparing the media again?

Thanks.

+4
source share

Source: https://habr.com/ru/post/1497643/


All Articles