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

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

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

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: 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: 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;
  }
}
org.videolan.libvlcMedianativeGetDuration

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,
  • nativeGetMeta,
  • nativeGetMrl,
  • nativeGetSlaves,
  • nativeGetState,
  • nativeGetTracks

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • CodeWhisperer alternatives
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