Code example for MediaController

Methods: setEnabled, show

0
					mc.setAnchorView(video);
					 
					Handler handler = new Handler();
			        handler.post(new Runnable() {
			            public void run() { 
			                mc.setEnabled(true);
			                try{ 
			                	mc.show();
			                } catch (BadTokenException e) {
								Log.w(TAG,"Can't show media controller, activity may not running yet.",e);
							} 
			            } 
			        }); 
				} 
			}); 
	        mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
		} catch (Exception e) {
			Log.e(TAG,"Problem with input stream!",e);
		} 
	}