@Override protected void onReleaseNative() { if (mSubItems != null) mSubItems.release(); nativeRelease(); }
@Override public void run() { if (dialog instanceof IdDialog) ((IdDialog) dialog).dismiss(); if (sCallbacks != null && dialog != null) sCallbacks.onCanceled(dialog); } });
@Override protected void onReleaseNative() { registerAudioPlug(false); if (mMedia != null) mMedia.release(); nativeRelease(); }
/** * Set the video track. * * @return true on success. */ public boolean setVideoTrack(int index) { /* Don't activate a video track is surfaces are not ready */ if (index == -1 || (mWindow.areViewsAttached() && !mWindow.areSurfacesWaiting())) { return nativeSetVideoTrack(index); } else return false; }
@Override protected void onReleaseNative() { if (mMediaList != null) mMediaList.release(); nativeRelease(); }
/** * Create an empty MediaPlayer * * @param libVLC a valid libVLC */ public MediaPlayer(LibVLC libVLC) { nativeNewFromLibVlc(libVLC, mWindow.getNativeHandler()); }
/** * Add a slave (or subtitle) to the current media player. * * @param type see {@link Media.Slave.Type} * @param uri a valid RFC 2396 Uri * @return true on success. */ public boolean addSlave(int type, Uri uri, boolean select) { return nativeAddSlave(type, Media.locationFromUri(uri), select); }
@Override protected void onReleaseNative() { registerAudioPlug(false); if (mMedia != null) mMedia.release(); mVoutCount = 0; nativeRelease(); }
/** * Set the video track. * * @return true on success. */ public boolean setVideoTrack(int index) { /* Don't activate a video track is surfaces are not ready */ if (index == -1 || (mWindow.areViewsAttached() && !mWindow.areSurfacesWaiting())) { return nativeSetVideoTrack(index); } else return false; }
@Override public void run() { if (dialog instanceof IdDialog) ((IdDialog) dialog).dismiss(); if (sCallbacks != null && dialog != null) sCallbacks.onCanceled(dialog); } });
@Override protected void onReleaseNative() { if (mSubItems != null) mSubItems.release(); nativeRelease(); }
@Override protected void onReleaseNative() { if (mMediaList != null) mMediaList.release(); nativeRelease(); }
@Override public void run() { if (dialog instanceof IdDialog) ((IdDialog) dialog).dismiss(); if (sCallbacks != null && dialog != null) sCallbacks.onCanceled(dialog); } });
@Override public void run() { if (dialog instanceof IdDialog) ((IdDialog) dialog).dismiss(); if (sCallbacks != null && dialog != null) sCallbacks.onCanceled(dialog); } });