コード例 #1
0
 public void stopPlayback() {
   if (nativeMode) {
     mVideoView.stopPlayback();
   } else {
     mVlcPlayer.stop();
   }
 }
コード例 #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;
    }
  }
コード例 #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);
 }
コード例 #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();
 }