1. Are you ready for the Galaxy S20? Here is everything we know so far!

MediaPlayer creates more than one buffer in SurfaceFlinger

Discussion in 'Android Development' started by raccoon95, May 27, 2020.

  1. raccoon95

    raccoon95 Lurker
    Thread Starter

    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
     

    Attached Files:



Loading...
Similar Threads - MediaPlayer creates more
  1. Kayem59
    Replies:
    4
    Views:
    288
  2. sersaber
    Replies:
    1
    Views:
    224
  3. MoodyBlues
    Replies:
    8
    Views:
    1,167
  4. harrytapp
    Replies:
    0
    Views:
    171
  5. mdsousa
    Replies:
    0
    Views:
    497
  6. mdsousa
    Replies:
    3
    Views:
    430
  7. Stokestack
    Replies:
    0
    Views:
    616
  8. Arnold Balan
    Replies:
    1
    Views:
    362
  9. Teedeemiles
    Replies:
    0
    Views:
    1,055
  10. ArthurGray
    Replies:
    6
    Views:
    2,166

Share This Page

Loading...