• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

MediaPlayer creates more than one buffer in SurfaceFlinger

raccoon95

Lurker
Hello everyone, I have a problem in my app development

I'm currently developing video live wallpaper and I'm having some issue. The video plays well, I also release the video every time onCompletion is invoked. However, when the mediaplayer object is prepared (onPrepared called) or playing, there will be around 5+ allocated buffer in the surfaceFlinger
I got it by calling the "adb shell dumpsys SurfaceFlinger" command
The allocated buffer will be back to one after the mediaplayer object is released
The dumpsys output is attached

Is this behavior normal? Is there some articles where I can learn about it?

Any help would be very appreciated
Thank you
 

Attachments

  • Capture1.PNG
    Capture1.PNG
    53.7 KB · Views: 235
Back
Top Bottom