Esempio n. 1
0
 public void stopPlayback() {
   if (nativeMode) {
     mVideoView.stopPlayback();
   } else {
     mVlcPlayer.stop();
   }
 }
Esempio n. 2
0
  @Override
  protected void onDetachedFromWindow() {
    super.onDetachedFromWindow();

    defaultControls = null;
    stopPlayback();
    overriddenPositionStopWatch.stop();

    if (emExoPlayer != null) {
      emExoPlayer.release();
    }

    if (audioCapabilitiesReceiver != null) {
      audioCapabilitiesReceiver.unregister();
      audioCapabilitiesReceiver = null;
    }
  }
Esempio n. 3
0
 /**
  * Stops the current video playback and resets the listener states so that we receive the
  * callbacks for events like onPrepared
  */
 public void reset() {
   stopPlayback();
   setVideoURI(null);
 }
Esempio n. 4
0
 /**
  * Performs the functionality to stop the progress polling, and stop any other procedures from
  * running that we no longer need.
  */
 private void onPlaybackEnded() {
   stopPlayback();
   pollRepeater.stop();
 }