/** * Release the MediaBrowser. */ @MainThread public void release() { reset(); if (!mAlive) throw new IllegalStateException("MediaBrowser released more than one time"); mLibVlc.release(); mAlive = false; }
public static synchronized void restart(final Context context) throws IllegalStateException { if (sLibVLC != null) { sLibVLC.release(); sLibVLC = new LibVLC(context.getApplicationContext(), VLCOptions.getLibOptions(context)); } }
/** * Release the MediaBrowser. */ @MainThread public void release() { reset(); if (!mAlive) throw new IllegalStateException("MediaBrowser released more than one time"); mLibVlc.release(); mAlive = false; }
/** * Release the MediaBrowser. */ @MainThread public void release() { reset(); if (!mAlive) throw new IllegalStateException("MediaBrowser released more than one time"); mLibVlc.release(); mAlive = false; }
/** * Release the MediaBrowser. */ @MainThread public void release() { reset(); if (!mAlive) throw new IllegalStateException("MediaBrowser released more than one time"); mLibVlc.release(); mAlive = false; }
/** * Release the MediaBrowser. */ @MainThread public void release() { reset(); if (!mAlive) throw new IllegalStateException("MediaBrowser released more than one time"); mLibVlc.release(); mAlive = false; }
public void releasePlayer() { if (mVlc == null) { return; } mMediaPlayer.setVideoCallback(null, null); mMediaPlayer.stop(); mVlc.release(); mVlc = null; } }
private void tearDownVideoPlayback() { mMediaPlayer.stop(); mMediaPlayer.release(); mLibVLC.release(); }
/** * Cancel the dump of the Uri. * Don't call this method if you already received the {@link Listener#onFinish(boolean)} callback. */ @MainThread public void cancel() { mMediaPlayer.stop(); mMediaPlayer.release(); mLibVLC.release(); } }
/** * Cancel the dump of the Uri. * Don't call this method if you already received the {@link Listener#onFinish(boolean)} callback. */ @MainThread public void cancel() { mMediaPlayer.stop(); mMediaPlayer.release(); mLibVLC.release(); } }
/** * Cancel the dump of the Uri. * Don't call this method if you already received the {@link Listener#onFinish(boolean)} callback. */ @MainThread public void cancel() { mMediaPlayer.stop(); mMediaPlayer.release(); mLibVLC.release(); } }
/** * Cancel the dump of the Uri. * Don't call this method if you already received the {@link Listener#onFinish(boolean)} callback. */ @MainThread public void cancel() { mMediaPlayer.stop(); mMediaPlayer.release(); mLibVLC.release(); } }
/** * Cancel the dump of the Uri. * Don't call this method if you already received the {@link Listener#onFinish(boolean)} callback. */ @MainThread public void cancel() { mMediaPlayer.stop(); mMediaPlayer.release(); mLibVLC.release(); } }
@Override public void onDestroy() { super.onDestroy(); mLibVlc.release(); mediaPlayer.stop(); mediaPlayer.release(); mediaPlayer = null; }
private void releasePlayer() { if (libvlc == null) return; mMediaPlayer.stop(); final IVLCVout vout = mMediaPlayer.getVLCVout(); vout.removeCallback(this); vout.detachViews(); holder = null; libvlc.release(); libvlc = null; mVideoWidth = 0; mVideoHeight = 0; }