Customize Media Controller

Nital picture Nital · Jul 21, 2011 · Viewed 12k times · Source

I m using VideoView to display video.

My Requirement is a MediaController wid play/Pause, Stop, & Volume Contoller.. i tried

         MediaController mc = new MediaController(this);  
         View mMediaControllerView = (View)findViewById(R.id.mediaController1); 
         mc.setAnchorView(mMediaControllerView);
         videoView.setMediaController(mc);

adding an imageview to the layout but this seems to have no effect on the MediaController

need some guidance/hint to proceed further...

Thanks.

Answer

Arun picture Arun · Jan 27, 2012

You have to write the MediaController Class all over again extending a FrameLayout .The Layout that it uses should be customised. Get the copy from android source code of MediaController Class and then proceed ahead.