Exemplo n.º 1
0
 public void stopPlayback() {
   if (nativeMode) {
     mVideoView.stopPlayback();
   } else {
     mVlcPlayer.stop();
   }
 }
Exemplo n.º 2
0
  private void releasePlayer() {
    if (mVlcPlayer == null) return;

    mVlcPlayer.setEventListener(null);
    mVlcPlayer.stop();
    mVlcPlayer.getVLCVout().detachViews();
    mVlcPlayer.release();
    mLibVLC = null;
    mVlcPlayer = null;
    mSurfaceView.setKeepScreenOn(false);
  }