congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Media.retain
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: mrmaffen/vlc-android-sdk

/**
 * Get the Media used by this MediaPlayer. This Media should be released with {@link #release()}.
 */
public synchronized Media getMedia() {
  if (mMedia != null)
    mMedia.retain();
  return mMedia;
}
origin: wobiancao/RtspServerAndVlcPlay

/**
 * Get the Media used by this MediaPlayer. This Media should be released with {@link #release()}.
 */
public synchronized Media getMedia() {
  if (mMedia != null)
    mMedia.retain();
  return mMedia;
}
origin: pedroSG94/vlc-example-streamplayer

/**
 * Get the Media used by this MediaPlayer. This Media should be released with {@link #release()}.
 */
public synchronized Media getMedia() {
  if (mMedia != null)
    mMedia.retain();
  return mMedia;
}
origin: Shirlman/YiPlayer

/**
 * Get the Media used by this MediaPlayer. This Media should be released with {@link #release()}.
 */
public synchronized Media getMedia() {
  if (mMedia != null)
    mMedia.retain();
  return mMedia;
}
origin: ymcao/YaPlayer

/**
 * Get the Media used by this MediaPlayer. This Media should be released with {@link #release()}.
 */
public synchronized Media getMedia() {
  if (mMedia != null)
    mMedia.retain();
  return mMedia;
}
origin: pedroSG94/vlc-example-streamplayer

protected Event(int type, Media media, boolean retain, int index) {
  super(type);
  if (retain && (media == null || !media.retain()))
    throw new IllegalStateException("invalid media reference");
  this.media = media;
  this.retain = retain;
  this.index = index;
}
origin: mrmaffen/vlc-android-sdk

/**
 * Get a Media at specified index.
 *
 * @param index index of the media
 * @return Media hold by MediaList. This Media should be released with {@link #release()}.
 */
public synchronized Media getMediaAt(int index) {
  if (index < 0 || index >= getCount())
    throw new IndexOutOfBoundsException();
  final Media media = mMediaArray.get(index);
  media.retain();
  return media;
}
origin: wobiancao/RtspServerAndVlcPlay

/**
 * Get a Media at specified index.
 *
 * @param index index of the media
 * @return Media hold by MediaList. This Media should be released with {@link #release()}.
 */
public synchronized Media getMediaAt(int index) {
  if (index < 0 || index >= getCount())
    throw new IndexOutOfBoundsException();
  final Media media = mMediaArray.get(index);
  media.retain();
  return media;
}
origin: ymcao/YaPlayer

/**
 * Get a Media at specified index.
 *
 * @param index index of the media
 * @return Media hold by MediaList. This Media should be released with {@link #release()}.
 */
public synchronized Media getMediaAt(int index) {
  if (index < 0 || index >= getCount())
    throw new IndexOutOfBoundsException();
  final Media media = mMediaArray.get(index);
  media.retain();
  return media;
}
origin: pedroSG94/vlc-example-streamplayer

/**
 * Get a Media at specified index.
 *
 * @param index index of the media
 * @return Media hold by MediaList. This Media should be released with {@link #release()}.
 */
public synchronized Media getMediaAt(int index) {
  if (index < 0 || index >= getCount())
    throw new IndexOutOfBoundsException();
  final Media media = mMediaArray.get(index);
  media.retain();
  return media;
}
origin: Shirlman/YiPlayer

/**
 * Get a Media at specified index.
 *
 * @param index index of the media
 * @return Media hold by MediaList. This Media should be released with {@link #release()}.
 */
public synchronized Media getMediaAt(int index) {
  if (index < 0 || index >= getCount())
    throw new IndexOutOfBoundsException();
  final Media media = mMediaArray.get(index);
  media.retain();
  return media;
}
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: ymcao/YaPlayer

/**
 * Get a media at a specified index. Should be released with {@link #release()}.
 */
@MainThread
public Media getMediaAt(int index) {
  if (index < 0 || index >= getMediaCount())
    throw new IndexOutOfBoundsException();
  final Media media = mBrowserMediaList != null ? mBrowserMediaList.getMediaAt(index) :
      mDiscovererMediaArray.get(index);
  media.retain();
  return media;
}
origin: pedroSG94/vlc-example-streamplayer

/**
 * Get a media at a specified index. Should be released with {@link #release()}.
 */
@MainThread
public Media getMediaAt(int index) {
  if (index < 0 || index >= getMediaCount())
    throw new IndexOutOfBoundsException();
  final Media media = mBrowserMediaList != null ? mBrowserMediaList.getMediaAt(index) :
      mDiscovererMediaArray.get(index);
  media.retain();
  return media;
}
origin: mrmaffen/vlc-android-sdk

/**
 * Get a media at a specified index. Should be released with {@link #release()}.
 */
@MainThread
public Media getMediaAt(int index) {
  if (index < 0 || index >= getMediaCount())
    throw new IndexOutOfBoundsException();
  final Media media = mBrowserMediaList != null ? mBrowserMediaList.getMediaAt(index) :
      mDiscovererMediaArray.get(index);
  media.retain();
  return media;
}
origin: Shirlman/YiPlayer

/**
 * Get a media at a specified index. Should be released with {@link #release()}.
 */
@MainThread
public Media getMediaAt(int index) {
  if (index < 0 || index >= getMediaCount())
    throw new IndexOutOfBoundsException();
  final Media media = mBrowserMediaList != null ? mBrowserMediaList.getMediaAt(index) :
      mDiscovererMediaArray.get(index);
  media.retain();
  return media;
}
origin: wobiancao/RtspServerAndVlcPlay

/**
 * Get a media at a specified index. Should be released with {@link #release()}.
 */
@MainThread
public Media getMediaAt(int index) {
  if (index < 0 || index >= getMediaCount())
    throw new IndexOutOfBoundsException();
  final Media media = mBrowserMediaList != null ? mBrowserMediaList.getMediaAt(index) :
      mDiscovererMediaArray.get(index);
  media.retain();
  return media;
}
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.libvlcMediaretain

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
  • isReleased
  • nativeAddOption
  • isReleased,
  • nativeAddOption,
  • nativeAddSlave,
  • nativeClearSlaves,
  • nativeGetDuration,
  • nativeGetMeta,
  • nativeGetMrl,
  • nativeGetSlaves,
  • nativeGetState,
  • nativeGetTracks

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • Menu (java.awt)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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