Android: How to create video player?

后端 未结 2 463
南方客
南方客 2020-12-13 16:59

I am creating a video recorder and would like to create video player to preview the recorded videos. Modifying the code from this page I have created a MediaPreview class th

2条回答
  •  醉话见心
    2020-12-13 17:41

    You need to attach the surface to the played after the surface is created.

    call

     mp.setDisplay(mPreview.getHolder());
    

    from inside

    public void surfaceCreated(SurfaceHolder holder)
    

提交回复
热议问题