Code example for VideoView

Methods: stopPlayback

0
    public void onResume() { 
        mVideoView.resume();
    } 
 
    public void onDestroy() { 
        mVideoView.stopPlayback();
    } 
 
    public boolean onError(MediaPlayer player, int arg1, int arg2) {
        mHandler.removeCallbacksAndMessages(null);
        mProgressView.setVisibility(View.GONE);
        return false; 
    } 
 
    public void onCompletion(MediaPlayer mp) {
        onCompletion(); 
    } 
 
    public void onCompletion() { 
    } 
}