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

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

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

origin: wobiancao/RtspServerAndVlcPlay

/**
 * Get the Track count.
 */
public int getTrackCount() {
  final Track[] tracks = getTracks();
  return tracks != null ? tracks.length : 0;
}
origin: ymcao/YaPlayer

/**
 * Get the Track count.
 */
public int getTrackCount() {
  final Track[] tracks = getTracks();
  return tracks != null ? tracks.length : 0;
}
origin: mrmaffen/vlc-android-sdk

/**
 * Get the Track count.
 */
public int getTrackCount() {
  final Track[] tracks = getTracks();
  return tracks != null ? tracks.length : 0;
}
origin: mrmaffen/vlc-android-sdk

/**
 * Get a Track
 * The Track can be casted to {@link AudioTrack}, {@link VideoTrack} or {@link SubtitleTrack} in function of the {@link Track.Type}.
 *
 * @param idx index of the track
 * @return Track or null if not idx is not valid
 * @see #getTrackCount()
 */
public Track getTrack(int idx) {
  final Track[] tracks = getTracks();
  if (tracks == null || idx < 0 || idx >= tracks.length)
    return null;
  return tracks[idx];
}
origin: pedroSG94/vlc-example-streamplayer

/**
 * Get the Track count.
 */
public int getTrackCount() {
  final Track[] tracks = getTracks();
  return tracks != null ? tracks.length : 0;
}
origin: Shirlman/YiPlayer

/**
 * Get the Track count.
 */
public int getTrackCount() {
  final Track[] tracks = getTracks();
  return tracks != null ? tracks.length : 0;
}
origin: wobiancao/RtspServerAndVlcPlay

/**
 * Get a Track
 * The Track can be casted to {@link AudioTrack}, {@link VideoTrack} or {@link SubtitleTrack} in function of the {@link Track.Type}.
 *
 * @param idx index of the track
 * @return Track or null if not idx is not valid
 * @see #getTrackCount()
 */
public Track getTrack(int idx) {
  final Track[] tracks = getTracks();
  if (tracks == null || idx < 0 || idx >= tracks.length)
    return null;
  return tracks[idx];
}
origin: ymcao/YaPlayer

/**
 * Get a Track
 * The Track can be casted to {@link AudioTrack}, {@link VideoTrack} or {@link SubtitleTrack} in function of the {@link Track.Type}.
 *
 * @param idx index of the track
 * @return Track or null if not idx is not valid
 * @see #getTrackCount()
 */
public Track getTrack(int idx) {
  final Track[] tracks = getTracks();
  if (tracks == null || idx < 0 || idx >= tracks.length)
    return null;
  return tracks[idx];
}
origin: pedroSG94/vlc-example-streamplayer

/**
 * Get a Track
 * The Track can be casted to {@link AudioTrack}, {@link VideoTrack} or {@link SubtitleTrack} in function of the {@link Track.Type}.
 *
 * @param idx index of the track
 * @return Track or null if not idx is not valid
 * @see #getTrackCount()
 */
public Track getTrack(int idx) {
  final Track[] tracks = getTracks();
  if (tracks == null || idx < 0 || idx >= tracks.length)
    return null;
  return tracks[idx];
}
origin: Shirlman/YiPlayer

/**
 * Get a Track
 * The Track can be casted to {@link AudioTrack}, {@link VideoTrack} or {@link SubtitleTrack} in function of the {@link Track.Type}.
 *
 * @param idx index of the track
 * @return Track or null if not idx is not valid
 * @see #getTrackCount()
 */
public Track getTrack(int idx) {
  final Track[] tracks = getTracks();
  if (tracks == null || idx < 0 || idx >= tracks.length)
    return null;
  return tracks[idx];
}
org.videolan.libvlcMediagetTracks

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

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • From CI to AI: The AI layer in your organization
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