Code example for VideoView

Methods: setVisibilitystopPlayback

0
    public void stopVideo() { 
        if ((mVideoView != null)) {
            if (LOCAL_LOGV) {
                Log.v(TAG, "Stopping video playback.");
            } 
            mVideoView.stopPlayback();
        } 
    } 
 
    public void pauseVideo() { 
        if (mVideoView != null) {
            if (LOCAL_LOGV) {
                Log.v(TAG, "Pausing video playback.");
            } 
            mVideoView.pause();
        } 
    } 
 
    public void seekVideo(int seekTo) {
        if (mVideoView != null) {
            if (seekTo > 0) {
                if (LOCAL_LOGV) {
                    Log.v(TAG, "Seeking video playback to " + seekTo);
                } 
                mVideoView.seekTo(seekTo);
            } 
        } 
    } 
 
    public void reset() { 
        if (null != mScrollText) {
            mScrollText.setVisibility(View.GONE);
        } 
 
        if (null != mImageView) {
            mImageView.setVisibility(View.GONE);
        } 
 
        if (null != mAudioPlayer) {
            stopAudio(); 
        } 
 
        if (null != mVideoView) {
            stopVideo(); 
            mVideoView.setVisibility(View.GONE);
        } 
    } 
 
    public void setVisibility(boolean visible) {
        // TODO Auto-generated method stub