@Override public void onBackPressed() { mVideoPlayer.stopPlayback(); super.onBackPressed(); }
private void play() { video.stopPlayback(); video.setVideoURI(current.getData()); video.start(); }
@Test public void shouldStopPlayback() throws Exception { view.stopPlayback(); ShadowVideoView shadowVideoView = shadowOf(view); assertThat(shadowVideoView.getCurrentVideoState()).isEqualTo(ShadowVideoView.STOP); }
@Test public void shouldDetermineIsPlaying() throws Exception { assertThat(view.isPlaying()).isFalse(); view.start(); assertThat(view.isPlaying()).isTrue(); view.stopPlayback(); assertThat(view.isPlaying()).isFalse(); }
public void videoDestroy() { if (mVideoView != null) { mVideoView.stopPlayback(); } }
@Override public void onBackPressed() { if (videoPlayer != null) { videoPlayer.stopPlayback(); } super.onBackPressed(); }
@Override public void onDestroy() { if (videoPlayer != null) { videoPlayer.stopPlayback(); } super.onDestroy(); }
@Override public void onDetach() { super.onDetach(); if (vv != null) { vv.stopPlayback(); } } }
public void onClickStop(View view) { if (videoView.isPlaying()) { videoView.stopPlayback(); } }
@Override protected void onPause() { super.onPause(); if (videoView.isPlaying()) { videoView.stopPlayback(); } } }
public void onClickStop(View view) { if (videoView.isPlaying()) { videoView.stopPlayback(); } }
@Override public void onPause() { mSplashVideo.stopPlayback(); super.onPause(); }
@Override protected void onPause() { super.onPause(); if (videoView.isPlaying()) { videoView.stopPlayback(); } } }
@Override protected void onPause() { super.onPause(); if (videoView.isPlaying()) { videoView.stopPlayback(); } } }
@Override public void onDestroy() { super.onDestroy(); mVideoView.stopPlayback(); mMediaLoader.removeDownloadListener(mUrl, this); }
private void play() { video.stopPlayback(); video.setVideoURI(current.getData()); video.start(); }
@Override public void onDestroy() { super.onDestroy(); mVideoView.stopPlayback(); mMediaLoader.removeDownloadListener(mUrl, this); }
public void onPause() { // Stop video when the activity is pause. mPositionWhenPaused = mVideoView.getCurrentPosition(); mVideoView.stopPlayback(); super.onPause(); }
@Override public void stopPlayback() { //Stop eye tracking. stopEyeTracking(); super.stopPlayback(); //stop light sensor mLightIntensityManager.stopLightMonitoring(); }
/** * This method will called whenever camera permission is not available. If the camera permission * is not available this will stop the video untill user provides the camera permission. */ void onCameraPermissionNotAvailable() { super.stopPlayback(); //Stop eye tracking. stopEyeTracking(); //start light sensor because eye tracking is not running we don't need light sensor now mLightIntensityManager.stopLightMonitoring(); mUserAwarenessListener.onErrorOccurred(Errors.CAMERA_PERMISSION_NOT_AVAILABLE); }