自定义媒体控制器

Nit*_*tal 2 android mediacontroller

VideoView用来显示视频.

我的要求是一个MediaControllerwid play/Pause, Stop, & Volume Contoller..我试过

         MediaController mc = new MediaController(this);  
         View mMediaControllerView = (View)findViewById(R.id.mediaController1); 
         mc.setAnchorView(mMediaControllerView);
         videoView.setMediaController(mc);
Run Code Online (Sandbox Code Playgroud)

添加一个imageview,layout但这似乎没有影响MediaController

需要一些指导/暗示继续进行......

谢谢.

小智 6

你必须再次编写MediaController类来扩展FrameLayout.它使用的布局应该是自定义的.从MediaController Class的android源代码中获取副本,然后继续.