Need to help

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

    SurfaceTexture mTexture = new SurfaceTexture(texture_id);
    Surface mSurface = new Surface(mTexture);
    MediaPlayer mp = new MediaPlayer();
    mp.setSurface(mSurface);
    

I got only playing audio - video not playing.

  1. How get video buffer for sending in OpenGL??
  2. How playing video on GLTexture?
Edit
Report