Android how to use/show MediaController with SurfaceView and MediaPlayer for video?
问题 I have to use MediaPlayer to play a video, NOT a VideoView. I have a SurfaceView in Xml Layout and on the Activity side a MediaPlayer and a MediaController. I coudldn't find a way to use MediaController with SurfaceView and MediaPlayer. It is so easy with VideoView but cant figure out how to use with MediaPlayer. I have found examples online but they are all about playing audio, not video. This is surfaceCreated method where i create the MediaPlayer @Override public void surfaceCreated