org.videolan.libvlc.LibVLC.<init>()方法的使用及代码示例

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

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

LibVLC.<init>介绍

[英]Create a LibVLC
[中]创建一个LibVLC

代码示例

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

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

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

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

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

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

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

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

代码示例来源:origin: ghondar/react-native-vlc-player

public VLCPlayer(ReactApplicationContext reactContext) {
  super(reactContext);
  this.context = reactContext;
  try {
    mLibVLC = new LibVLC();
  } catch(IllegalStateException e) {
    Toast.makeText(reactContext,
        "Error initializing the libVLC multimedia framework!",
        Toast.LENGTH_LONG).show();
  }
}

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

public MediaPlayer() {
  mLibVLC = new LibVLC(null); //FIXME, this is wrong
  mMediaPlayer = new org.videolan.libvlc.MediaPlayer(mLibVLC);
}

代码示例来源:origin: amahi/android

private void setUpVideoPlayer() {
  final ArrayList<String> args = new ArrayList<>();
  args.add("-vvv");
  mLibVLC = new LibVLC(this, args);
  mMediaPlayer = new MediaPlayer(mLibVLC);
}

代码示例来源:origin: amahi/android

private void setLibVlc() {
  final ArrayList<String> args = new ArrayList<>();
  args.add("-vvv");
  mLibVlc = new LibVLC(getActivity(), args);
}

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

public MediaPlayer() {
  mLibVLC = new LibVLC(null); //FIXME, this is wrong
  mMediaPlayer = new org.videolan.libvlc.MediaPlayer(mLibVLC);
}

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

public MediaPlayer() {
  mLibVLC = new LibVLC(null); //FIXME, this is wrong
  mMediaPlayer = new org.videolan.libvlc.MediaPlayer(mLibVLC);
}

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

public MediaPlayer() {
  mLibVLC = new LibVLC(null); //FIXME, this is wrong
  mMediaPlayer = new org.videolan.libvlc.MediaPlayer(mLibVLC);
}

代码示例来源: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: pedroSG94/vlc-example-streamplayer

public VlcVideoLibrary(Context context, VlcListener vlcListener, TextureView textureView) {
 this.vlcListener = vlcListener;
 this.textureView = textureView;
 vlcInstance = new LibVLC(context, new VlcOptions().getDefaultOptions());
 options.add(":fullscreen");
}

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

public VlcVideoLibrary(Context context, VlcListener vlcListener, SurfaceTexture surfaceTexture) {
 this.vlcListener = vlcListener;
 this.surfaceTexture = surfaceTexture;
 vlcInstance = new LibVLC(context, new VlcOptions().getDefaultOptions());
 options.add(":fullscreen");
}

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

public VlcVideoLibrary(Context context, VlcListener vlcListener, Surface surface) {
 this.vlcListener = vlcListener;
 this.surface = surface;
 surfaceHolder = null;
 vlcInstance = new LibVLC(context, new VlcOptions().getDefaultOptions());
 options.add(":fullscreen");
}

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

public VlcVideoLibrary(Context context, VlcListener vlcListener, Surface surface,
  SurfaceHolder surfaceHolder, int width, int height) {
 this.vlcListener = vlcListener;
 this.surface = surface;
 this.surfaceHolder = surfaceHolder;
 this.width = width;
 this.height = height;
 vlcInstance = new LibVLC(context, new VlcOptions().getDefaultOptions());
 options.add(":fullscreen");
}

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

public VlcVideoLibrary(Context context, VlcListener vlcListener, Surface surface,
  SurfaceHolder surfaceHolder) {
 this.vlcListener = vlcListener;
 this.surface = surface;
 this.surfaceHolder = surfaceHolder;
 vlcInstance = new LibVLC(context, new VlcOptions().getDefaultOptions());
 options.add(":fullscreen");
}

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

public VlcVideoLibrary(Context context, VlcListener vlcListener, SurfaceView surfaceView) {
 this.vlcListener = vlcListener;
 this.surfaceView = surfaceView;
 vlcInstance = new LibVLC(context, new VlcOptions().getDefaultOptions());
 options.add(":fullscreen");
}

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

public VlcVideoLibrary(Context context, VlcListener vlcListener, Surface surface, int width,
  int height) {
 this.vlcListener = vlcListener;
 this.surface = surface;
 this.width = width;
 this.height = height;
 surfaceHolder = null;
 vlcInstance = new LibVLC(context, new VlcOptions().getDefaultOptions());
 options.add(":fullscreen");
}

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

/**
 * A set of utility functions for the VLC application
 */
public synchronized static LibVLC get(final Context context) throws IllegalStateException {
  if (sLibVLC == null) {
    if (!VLCUtil.hasCompatibleCPU(context)) {
      Log.e(TAG, VLCUtil.getErrorMsg());
      throw new IllegalStateException("LibVLC initialisation failed: " + VLCUtil.getErrorMsg());
    }
    sLibVLC = new LibVLC(context, VLCOptions.getLibOptions(context));
  }
  return sLibVLC;
}

相关文章