org.videolan.libvlc.LibVLC类的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(319)

本文整理了Java中org.videolan.libvlc.LibVLC类的一些代码示例,展示了LibVLC类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LibVLC类的具体详情如下:
包路径:org.videolan.libvlc.LibVLC
类名称:LibVLC

LibVLC介绍

暂无

代码示例

代码示例来源:origin: mrmaffen/vlc-android-sdk

public VideoView(Context context) {
  super(context);
  sLibVLC = new LibVLC(context, null);
}

代码示例来源:origin: ymcao/YaPlayer

public static synchronized void restart(final Context context) throws IllegalStateException {
  if (sLibVLC != null) {
    sLibVLC.release();
    sLibVLC = new LibVLC(context.getApplicationContext(), VLCOptions.getLibOptions(context));
  }
}

代码示例来源:origin: mrmaffen/vlc-android-sdk

@Override
protected void onReleaseNative() {
  nativeRelease();
}

代码示例来源:origin: xugaoxiang/VLCAndroidMultiWindow

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);

代码示例来源:origin: mrmaffen/vlc-android-sdk

/**
 * Release the MediaBrowser.
 */
@MainThread
public void release() {
  reset();
  if (!mAlive)
    throw new IllegalStateException("MediaBrowser released more than one time");
  mLibVlc.release();
  mAlive = false;
}

代码示例来源:origin: Shirlman/YiPlayer

loadLibraries();
nativeNew(options.toArray(new String[options.size()]));

代码示例来源:origin: mrmaffen/vlc-android-sdk

/**
 * 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);
}

代码示例来源:origin: ymcao/YaPlayer

public MediaBrowser(LibVLC libvlc, EventListener listener) {
  mLibVlc = libvlc;
  mLibVlc.retain();
  mEventListener = listener;
  mAlive = true;
}

代码示例来源:origin: xugaoxiang/VLCAndroidMultiWindow

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) {

代码示例来源:origin: pedroSG94/vlc-example-streamplayer

/**
 * Release the MediaBrowser.
 */
@MainThread
public void release() {
  reset();
  if (!mAlive)
    throw new IllegalStateException("MediaBrowser released more than one time");
  mLibVlc.release();
  mAlive = false;
}

代码示例来源:origin: ymcao/YaPlayer

loadLibraries();
nativeNew(options.toArray(new String[options.size()]), context.getDir("vlc", Context.MODE_PRIVATE).getAbsolutePath());

代码示例来源:origin: Shirlman/YiPlayer

/**
 * 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);
}

代码示例来源:origin: Shirlman/YiPlayer

public MediaBrowser(LibVLC libvlc, EventListener listener) {
  mLibVlc = libvlc;
  mLibVlc.retain();
  mEventListener = listener;
  mAlive = true;
}

代码示例来源:origin: pedroSG94/vlc-example-streamplayer

public VideoView(Context context) {
  super(context);
  sLibVLC = new LibVLC(context, null);
}

代码示例来源:origin: ymcao/YaPlayer

/**
 * Release the MediaBrowser.
 */
@MainThread
public void release() {
  reset();
  if (!mAlive)
    throw new IllegalStateException("MediaBrowser released more than one time");
  mLibVlc.release();
  mAlive = false;
}

代码示例来源:origin: mrmaffen/vlc-android-sdk

loadLibraries();
nativeNew(options.toArray(new String[options.size()]), context.getDir("vlc", Context.MODE_PRIVATE).getAbsolutePath());

代码示例来源:origin: pedroSG94/vlc-example-streamplayer

/**
 * 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);
}

代码示例来源:origin: mrmaffen/vlc-android-sdk

/**
 *
 * @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;
}

代码示例来源:origin: ymcao/YaPlayer

@Override
protected void onReleaseNative() {
  nativeRelease();
}

代码示例来源:origin: wobiancao/RtspServerAndVlcPlay

public VideoView(Context context) {
  super(context);
  sLibVLC = new LibVLC(context, null);
}

相关文章