Android. How play video on Surface(OpenGL)

前端 未结 4 974
野趣味
野趣味 2020-12-05 10:59

Need to help

  1. How play video on Surface(OpenGL) in Android? I tried playing video in mySurfaceView extends SurfaceView with help m

4条回答
  •  一整个雨季
    2020-12-05 11:20

    mMediaPlayer.setSurface(new Surface(mSurfaceTexture));
    

    You can use above line of code to use it on your mediaPlayerObject over your desired surfaceTexture which is a applied texture over your surfaceview.

    Hope that helps.

提交回复
热议问题