The surface has been released when I try to setDisplay to MediaPlayer

后端 未结 6 676
忘掉有多难
忘掉有多难 2021-01-03 22:23

My xml file:



        
6条回答
  •  滥情空心
    2021-01-03 23:23

    For those still having issues, try implementing SurfaceHolder.Callback in your activity/fragment/etc and at the onCreate/onCreateView method, call the addCallback(SurfaceHolder.Callback callback) method, using your activity/fragment/etc as the parameter callback.

提交回复
热议问题