public VideoView(Context context) { super(context); sLibVLC = new LibVLC(context, null); }
@Override protected void onReleaseNative() { nativeRelease(); }
libvlc = new LibVLC(); mEventHandler = libvlc.getEventHandler(); libvlc.init(mContext); libvlc.setHardwareAcceleration(LibVLC.HW_ACCELERATION_FULL); libvlc.setSubtitlesEncoding(""); libvlc.setAout(LibVLC.AOUT_OPENSLES); libvlc.setTimeStretching(true); libvlc.setVerboseMode(true); libvlc.setNetworkCaching(1000); NativeCrashHandler.getInstance().setOnNativeCrashListener(nativecrashListener); libvlc.setVout(LibVLC.VOUT_ANDROID_WINDOW); else libvlc.setVout(LibVLC.VOUT_ANDROID_SURFACE); LibVLC.restartInstance(mContext); mEventHandler.addHandler(mHandler); holder.setKeepScreenOn(true); MediaList list = libvlc.getMediaList(); list.clear(); list.add(new Media(libvlc, LibVLC.PathToURI(media)), false); libvlc.playIndex(0);
/** * Release the MediaBrowser. */ @MainThread public void release() { reset(); if (!mAlive) throw new IllegalStateException("MediaBrowser released more than one time"); mLibVlc.release(); mAlive = false; }
loadLibraries(); nativeNew(options.toArray(new String[options.size()]));
/** * Sets the application name. LibVLC passes this as the user agent string * when a protocol requires it. * * @param name human-readable application name, e.g. "FooBar player 1.2.3" * @param http HTTP User Agent, e.g. "FooBar/1.2.3 Python/2.6.0" */ public void setUserAgent(String name, String http){ nativeSetUserAgent(name, http); }
public MediaBrowser(LibVLC libvlc, EventListener listener) { mLibVlc = libvlc; mLibVlc.retain(); mEventListener = listener; mAlive = true; }
libvlc = new LibVLC(); libvlc.init(mContext); libvlc.setHardwareAcceleration(LibVLC.HW_ACCELERATION_FULL); libvlc.setSubtitlesEncoding(""); libvlc.setAout(LibVLC.AOUT_OPENSLES); libvlc.setTimeStretching(true); libvlc.setVerboseMode(true); libvlc.setNetworkCaching(1000); NativeCrashHandler.getInstance().setOnNativeCrashListener(nativecrashListener); libvlc.setVout(LibVLC.VOUT_ANDROID_WINDOW); else libvlc.setVout(LibVLC.VOUT_ANDROID_SURFACE); LibVLC.restartInstance(mContext); mEventHandler.addHandler(mHandler); holder.setKeepScreenOn(true); MediaList list = libvlc.getMediaList(); list.clear(); list.add(new Media(libvlc, LibVLC.PathToURI(media)), false); libvlc.playIndex(0); mute(); } catch (Exception e) {
/** * Release the MediaBrowser. */ @MainThread public void release() { reset(); if (!mAlive) throw new IllegalStateException("MediaBrowser released more than one time"); mLibVlc.release(); mAlive = false; }
loadLibraries(); nativeNew(options.toArray(new String[options.size()]), context.getDir("vlc", Context.MODE_PRIVATE).getAbsolutePath());
/** * Sets the application name. LibVLC passes this as the user agent string * when a protocol requires it. * * @param name human-readable application name, e.g. "FooBar player 1.2.3" * @param http HTTP User Agent, e.g. "FooBar/1.2.3 Python/2.6.0" */ public void setUserAgent(String name, String http){ nativeSetUserAgent(name, http); }
public MediaBrowser(LibVLC libvlc, EventListener listener) { mLibVlc = libvlc; mLibVlc.retain(); mEventListener = listener; mAlive = true; }
public VideoView(Context context) { super(context); sLibVLC = new LibVLC(context, null); }
/** * Release the MediaBrowser. */ @MainThread public void release() { reset(); if (!mAlive) throw new IllegalStateException("MediaBrowser released more than one time"); mLibVlc.release(); mAlive = false; }
loadLibraries(); nativeNew(options.toArray(new String[options.size()]), context.getDir("vlc", Context.MODE_PRIVATE).getAbsolutePath());
/** * Sets the application name. LibVLC passes this as the user agent string * when a protocol requires it. * * @param name human-readable application name, e.g. "FooBar player 1.2.3" * @param http HTTP User Agent, e.g. "FooBar/1.2.3 Python/2.6.0" */ public void setUserAgent(String name, String http){ nativeSetUserAgent(name, http); }
/** * * @param libvlc The LibVLC instance to use * @param listener The Listener which will receive callbacks * * With this constructor, callbacks will be executed in the main thread */ public MediaBrowser(LibVLC libvlc, EventListener listener) { mLibVlc = libvlc; mLibVlc.retain(); mEventListener = listener; mAlive = true; }
@Override protected void onReleaseNative() { nativeRelease(); }
public VideoView(Context context) { super(context); sLibVLC = new LibVLC(context, null); }