Playing video using MediaPlayer class

前端 未结 4 2344

I am trying to make use of MediaPlayer class for playing a video file. The problem is video is not getting displayed at all though I can hear the sound in the video

4条回答
  •  天涯浪人
    2021-02-13 02:23

    Well, I don't know if you need an specific situation, but have you already tried FullscreenVideoView?

    It tries to abstracts all those SurfaceView problems and you can focus only in UI buttons. As It's open, you can subclass FullscreenVideoView and customize as you need.

提交回复
热议问题