VideoView resume - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for VideoView resume method.

This code example shows how to use the following methods:resume, seekTo
		player.pause();
	} 
	 
	public void resume() 
	{ 
		player.seekTo(savedPosition);
		player.resume();
	} 
	 
	public void start() 
	{ 
		// Enable wakelock 
		player.setKeepScreenOn(true);
		 
		// Start the media 
		waitDialog = SpinnerDialog.displayDialog(activity, "Please Wait", "Loading Media", true);
		player.start();
	} 
	 
	public void stop() 
6
CodeRank
This code example shows how to use the following methods:resume, seekTo
 
    @Override 
    public void onResume() { 
        super.onResume(); 
        if (mHasPaused) {
            mVideoView.seekTo(mVideoPosition);
            mVideoView.resume();
            mHasPaused = false;
        } 
        mHandler.post(mProgressChecker);
    } 
 
    @Override 
    public void onPause() { 
        mHasPaused = true;
        mHandler.removeCallbacksAndMessages(null);
        mVideoPosition = mVideoView.getCurrentPosition();
        mVideoView.suspend();
        super.onPause(); 
    } 
4
CodeRank
This code example shows how to use the following methods:resume, seekTo
	 
	@Override 
	protected void onResume() { 
		super.onResume(); 
		if (hasPaused) {
			mVideoView.seekTo(mCurrentPosition);
			mVideoView.resume();
		} 
		 
	} 
	 
	@Override 
	protected void onDestroy() { 
		super.onDestroy(); 
	} 
} 
5
CodeRank
This code example shows how to use the following methods:resume, seekTo
	private void saveVideoProgress() { 
		mVideoPosition = mVideoView.getCurrentPosition();
	} 
 
	private void restoreVideoProgress() { 
		mVideoView.seekTo(mVideoPosition);
		mVideoView.resume();
	} 
 
	private boolean hasNativeActionBar() { 
		return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB);
	} 
 
	private void setupVideoView() { 
		mVideoView.setMediaController(new MediaController(this));
		if (mVideoUri != null) {
			mVideoView.setVideoURI(mVideoUri);
		} 
	} 
 
4
CodeRank
This code example shows how to use the following methods:resume, seekTo
 
    @Override 
    public void onResume() { 
        super.onResume(); 
        if (mHasPaused) {
            mVideoView.seekTo(mVideoPosition);
            mVideoView.resume();
            mHasPaused = false;
        } 
        mHandler.post(mProgressChecker);
    } 
 
    @Override 
    public void onPause() { 
        mHasPaused = true;
        mHandler.removeCallbacksAndMessages(null);
        mVideoPosition = mVideoView.getCurrentPosition();
        mVideoView.suspend();
        super.onPause(); 
    } 
4
CodeRank
This code example shows how to use the following methods:resume, seekTo
     
    @Override 
	public void onResume()  
	{ 
		super.onResume(); 
		Videoview.seekTo(currentpos);
		Videoview.resume();
	} 
} 
5
CodeRank
This code example shows how to use the following methods:resume
	} 
 
	@Override 
	protected void onResume() { 
	    super.onResume(); 
	    videoView.resume();
	} 
 
	@Override 
	public void onConfigurationChanged(Configuration newConfig) {
	    super.onConfigurationChanged(newConfig);
	} 
} 
4
CodeRank
This code example shows how to use the following methods:resume
		} 
	} 
 
	public void resumeVideo() { 
		if (this.videoView != null) {
			this.videoView.resume();
		} 
	} 
 
	public void nextVideo() { 
		if (videoIndex < (videos.length - 1)) {
			videoIndex++;
		} else { 
			videoIndex = 0;
		} 
		playVideo(videos[videoIndex]);
	} 
 
	public void previousVideo() { 
		if (videoIndex > 0) {
3
CodeRank
This code example shows how to use the following methods:resume
 
        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(); 
4
CodeRank