Tabnine Logo
Media.isReleased
Code IndexAdd Tabnine to your IDE (free)

How to use
isReleased
method
in
org.videolan.libvlc.Media

Best Java code snippets using org.videolan.libvlc.Media.isReleased (Showing top 20 results out of 315)

origin: mrmaffen/vlc-android-sdk

private Track[] getTracks() {
  synchronized (this) {
    if (mNativeTracks != null)
      return mNativeTracks;
    if (isReleased())
      return null;
  }
  final Track[] tracks = nativeGetTracks();
  synchronized (this) {
    mNativeTracks = tracks;
    return mNativeTracks;
  }
}
origin: pedroSG94/vlc-example-streamplayer

private Track[] getTracks() {
  synchronized (this) {
    if (mNativeTracks != null)
      return mNativeTracks;
    if (isReleased())
      return null;
  }
  final Track[] tracks = nativeGetTracks();
  synchronized (this) {
    mNativeTracks = tracks;
    return mNativeTracks;
  }
}
origin: Shirlman/YiPlayer

private Track[] getTracks() {
  synchronized (this) {
    if (mNativeTracks != null)
      return mNativeTracks;
    if (isReleased())
      return null;
  }
  final Track[] tracks = nativeGetTracks();
  synchronized (this) {
    mNativeTracks = tracks;
    return mNativeTracks;
  }
}
origin: ymcao/YaPlayer

private Track[] getTracks() {
  synchronized (this) {
    if (mNativeTracks != null)
      return mNativeTracks;
    if (isReleased())
      return null;
  }
  final Track[] tracks = nativeGetTracks();
  synchronized (this) {
    mNativeTracks = tracks;
    return mNativeTracks;
  }
}
origin: wobiancao/RtspServerAndVlcPlay

private Track[] getTracks() {
  synchronized (this) {
    if (mNativeTracks != null)
      return mNativeTracks;
    if (isReleased())
      return null;
  }
  final Track[] tracks = nativeGetTracks();
  synchronized (this) {
    mNativeTracks = tracks;
    return mNativeTracks;
  }
}
origin: mrmaffen/vlc-android-sdk

/**
 * Get the duration of the media.
 */
public long getDuration() {
  synchronized (this) {
    if (mDuration != -1)
      return mDuration;
    if (isReleased())
      return 0;
  }
  final long duration = nativeGetDuration();
  synchronized (this) {
    mDuration = duration;
    return mDuration;
  }
}
origin: ymcao/YaPlayer

/**
 * Get the duration of the media.
 */
public long getDuration() {
  synchronized (this) {
    if (mDuration != -1)
      return mDuration;
    if (isReleased())
      return 0;
  }
  final long duration = nativeGetDuration();
  synchronized (this) {
    mDuration = duration;
    return mDuration;
  }
}
origin: wobiancao/RtspServerAndVlcPlay

/**
 * Get the duration of the media.
 */
public long getDuration() {
  synchronized (this) {
    if (mDuration != -1)
      return mDuration;
    if (isReleased())
      return 0;
  }
  final long duration = nativeGetDuration();
  synchronized (this) {
    mDuration = duration;
    return mDuration;
  }
}
origin: pedroSG94/vlc-example-streamplayer

/**
 * Get the duration of the media.
 */
public long getDuration() {
  synchronized (this) {
    if (mDuration != -1)
      return mDuration;
    if (isReleased())
      return 0;
  }
  final long duration = nativeGetDuration();
  synchronized (this) {
    mDuration = duration;
    return mDuration;
  }
}
origin: Shirlman/YiPlayer

/**
 * Get the duration of the media.
 */
public long getDuration() {
  synchronized (this) {
    if (mDuration != -1)
      return mDuration;
    if (isReleased())
      return 0;
  }
  final long duration = nativeGetDuration();
  synchronized (this) {
    mDuration = duration;
    return mDuration;
  }
}
origin: mrmaffen/vlc-android-sdk

/**
 * Get the type of the media
 *
 * @see {@link Type}
 */
public int getType() {
  synchronized (this) {
    if (mType != -1)
      return mType;
    if (isReleased())
      return Type.Unknown;
  }
  final int type = nativeGetType();
  synchronized (this) {
    mType = type;
    return mType;
  }
}
origin: mrmaffen/vlc-android-sdk

/**
 * Get the state of the media.
 *
 * @see State
 */
public int getState() {
  synchronized (this) {
    if (mState != -1)
      return mState;
    if (isReleased())
      return State.Error;
  }
  final int state = nativeGetState();
  synchronized (this) {
    mState = state;
    return mState;
  }
}
origin: ymcao/YaPlayer

/**
 * Get the state of the media.
 *
 * @see State
 */
public int getState() {
  synchronized (this) {
    if (mState != -1)
      return mState;
    if (isReleased())
      return State.Error;
  }
  final int state = nativeGetState();
  synchronized (this) {
    mState = state;
    return mState;
  }
}
origin: ymcao/YaPlayer

/**
 * Get the type of the media
 *
 * @return type
 */
public int getType() {
  synchronized (this) {
    if (mType != -1)
      return mType;
    if (isReleased())
      return Type.Unknown;
  }
  final int type = nativeGetType();
  synchronized (this) {
    mType = type;
    return mType;
  }
}
origin: pedroSG94/vlc-example-streamplayer

/**
 * Get the type of the media
 *
 * @see {@link Type}
 */
public int getType() {
  synchronized (this) {
    if (mType != -1)
      return mType;
    if (isReleased())
      return Type.Unknown;
  }
  final int type = nativeGetType();
  synchronized (this) {
    mType = type;
    return mType;
  }
}
origin: mrmaffen/vlc-android-sdk

/**
 * Create a MediaPlayer from a Media
 *
 * @param media a valid Media object
 */
public MediaPlayer(Media media) {
  super(media);
  if (media == null || media.isReleased())
    throw new IllegalArgumentException("Media is null or released");
  mMedia = media;
  mMedia.retain();
  nativeNewFromMedia(mMedia, mWindow);
}
origin: pedroSG94/vlc-example-streamplayer

/**
 * Create a MediaPlayer from a Media
 *
 * @param media a valid Media object
 */
public MediaPlayer(Media media) {
  super(media);
  if (media == null || media.isReleased())
    throw new IllegalArgumentException("Media is null or released");
  mMedia = media;
  mMedia.retain();
  nativeNewFromMedia(mMedia, mWindow);
}
origin: wobiancao/RtspServerAndVlcPlay

/**
 * Create a MediaPlayer from a Media
 *
 * @param media a valid Media object
 */
public MediaPlayer(Media media) {
  super(media);
  if (media == null || media.isReleased())
    throw new IllegalArgumentException("Media is null or released");
  mMedia = media;
  mMedia.retain();
  nativeNewFromMedia(mMedia, mWindow);
}
origin: ymcao/YaPlayer

/**
 * Create a MediaPlayer from a Media
 *
 * @param media a valid Media object
 */
public MediaPlayer(Media media) {
  if (media == null || media.isReleased())
    throw new IllegalArgumentException("Media is null or released");
  mMedia = media;
  mMedia.retain();
  nativeNewFromMedia(mMedia, mWindow.getNativeHandler());
}
origin: Shirlman/YiPlayer

/**
 * Create a MediaPlayer from a Media
 *
 * @param media a valid Media object
 */
public MediaPlayer(Media media) {
  if (media == null || media.isReleased())
    throw new IllegalArgumentException("Media is null or released");
  mMedia = media;
  mMedia.retain();
  nativeNewFromMedia(mMedia, mWindow.getNativeHandler());
}
org.videolan.libvlcMediaisReleased

Popular methods of Media

  • <init>
  • addOption
    Add an option to this Media. This Media should be alive (not released).
  • release
  • setHWDecoderEnabled
    Add or remove hw acceleration media options
  • parse
    Parse the media synchronously with a flag. This Media should be alive (not released).
  • parseAsync
    Parse the media asynchronously with a flag. This Media should be alive (not released). To track when
  • getMediaCodecModule
  • getTrack
    Get a Track The Track can be casted to AudioTrack, VideoTrack or SubtitleTrack in function of the Tr
  • getTrackCount
    Get the Track count.
  • getTracks
  • nativeAddOption
  • nativeAddSlave
  • nativeAddOption,
  • nativeAddSlave,
  • nativeClearSlaves,
  • nativeGetDuration,
  • nativeGetMeta,
  • nativeGetMrl,
  • nativeGetSlaves,
  • nativeGetState,
  • nativeGetTracks

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JCheckBox (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now