Code example for VideoView

Methods: resume

0
 
        mVideoView.suspend();
    } 
 
    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(); 
    }