Code example for MediaPlayer

Methods: stop

0
        return false; 
    } 
 
    @Override 
    public void onCompletion(MediaPlayer player) {
        player.stop();
    } 
 
    @Override 
    public View getView() {
        return mVideoView;
    } 
 
    @Override 
    public ViewGroup getContainerView() {
        return mCustomView;
    } 
 
    @Override 
    public void navigate(String url) {
        mVideoView.setVideoURI(Uri.parse(url));