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

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

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

origin: mrmaffen/vlc-android-sdk

/**
 * Parse the media synchronously with a flag. This Media should be alive (not released).
 *
 * @param flags see {@link Parse}
 * @return true in case of success, false otherwise.
 */
public boolean parse(int flags) {
  boolean parse = false;
  synchronized (this) {
    if ((mParseStatus & (PARSE_STATUS_PARSED | PARSE_STATUS_PARSING)) == 0) {
      mParseStatus |= PARSE_STATUS_PARSING;
      parse = true;
    }
  }
  if (parse && nativeParse(flags)) {
    postParse();
    return true;
  } else
    return false;
}
origin: ymcao/YaPlayer

/**
 * Parse the media synchronously with a flag. This Media should be alive (not released).
 *
 * @param flags see {@link Parse}
 * @return true in case of success, false otherwise.
 */
public boolean parse(int flags) {
  boolean parse = false;
  synchronized (this) {
    if ((mParseStatus & (PARSE_STATUS_PARSED | PARSE_STATUS_PARSING)) == 0) {
      mParseStatus |= PARSE_STATUS_PARSING;
      parse = true;
    }
  }
  if (parse && nativeParse(flags)) {
    postParse();
    return true;
  } else
    return false;
}
origin: wobiancao/RtspServerAndVlcPlay

/**
 * Parse the media synchronously with a flag. This Media should be alive (not released).
 *
 * @param flags see {@link Parse}
 * @return true in case of success, false otherwise.
 */
public boolean parse(int flags) {
  boolean parse = false;
  synchronized (this) {
    if ((mParseStatus & (PARSE_STATUS_PARSED | PARSE_STATUS_PARSING)) == 0) {
      mParseStatus |= PARSE_STATUS_PARSING;
      parse = true;
    }
  }
  if (parse && nativeParse(flags)) {
    postParse();
    return true;
  } else
    return false;
}
origin: pedroSG94/vlc-example-streamplayer

/**
 * Parse the media synchronously with a flag. This Media should be alive (not released).
 *
 * @param flags see {@link Parse}
 * @return true in case of success, false otherwise.
 */
public boolean parse(int flags) {
  boolean parse = false;
  synchronized (this) {
    if ((mParseStatus & (PARSE_STATUS_PARSED | PARSE_STATUS_PARSING)) == 0) {
      mParseStatus |= PARSE_STATUS_PARSING;
      parse = true;
    }
  }
  if (parse && nativeParse(flags)) {
    postParse();
    return true;
  } else
    return false;
}
origin: Shirlman/YiPlayer

/**
 * Parse the media synchronously with a flag. This Media should be alive (not released).
 *
 * @param flags see {@link Parse}
 * @return true in case of success, false otherwise.
 */
public boolean parse(int flags) {
  boolean parse = false;
  synchronized (this) {
    if ((mParseStatus & (PARSE_STATUS_PARSED | PARSE_STATUS_PARSING)) == 0) {
      mParseStatus |= PARSE_STATUS_PARSING;
      parse = true;
    }
  }
  if (parse && nativeParse(flags)) {
    postParse();
    return true;
  } else
    return false;
}
origin: mrmaffen/vlc-android-sdk

@Override
protected synchronized Event onEventNative(int eventType, long arg1, long arg2, float argf1) {
  switch (eventType) {
  case Event.MetaChanged:
    // either we update all metas (if first call) or we update a specific meta
    int id = (int) arg1;
    if (id >= 0 && id < Meta.MAX)
      mNativeMetas[id] = null;
    return new Event(eventType, arg1);
  case Event.DurationChanged:
    mDuration = -1;
    break;
  case Event.ParsedChanged:
    postParse();
    return new Event(eventType, arg1);
  case Event.StateChanged:
    mState = -1;
    break;
  }
  return new Event(eventType);
}
origin: ymcao/YaPlayer

@Override
protected synchronized Event onEventNative(int eventType, long arg1, float arg2) {
  switch (eventType) {
    case Event.MetaChanged:
      // either we update all metas (if first call) or we update a specific meta
      int id = (int) arg1;
      if (id >= 0 && id < Meta.MAX)
        mNativeMetas[id] = null;
      return new Event(eventType, arg1);
    case Event.DurationChanged:
      mDuration = -1;
      break;
    case Event.ParsedChanged:
      postParse();
      return new Event(eventType, arg1);
    case Event.StateChanged:
      mState = -1;
      break;
  }
  return new Event(eventType);
}
origin: wobiancao/RtspServerAndVlcPlay

@Override
protected synchronized Event onEventNative(int eventType, long arg1, long arg2, float argf1) {
  switch (eventType) {
  case Event.MetaChanged:
    // either we update all metas (if first call) or we update a specific meta
    int id = (int) arg1;
    if (id >= 0 && id < Meta.MAX)
      mNativeMetas[id] = null;
    return new Event(eventType, arg1);
  case Event.DurationChanged:
    mDuration = -1;
    break;
  case Event.ParsedChanged:
    postParse();
    return new Event(eventType, arg1);
  case Event.StateChanged:
    mState = -1;
    break;
  }
  return new Event(eventType);
}
origin: pedroSG94/vlc-example-streamplayer

@Override
protected synchronized Event onEventNative(int eventType, long arg1, long arg2, float argf1) {
  switch (eventType) {
  case Event.MetaChanged:
    // either we update all metas (if first call) or we update a specific meta
    int id = (int) arg1;
    if (id >= 0 && id < Meta.MAX)
      mNativeMetas[id] = null;
    return new Event(eventType, arg1);
  case Event.DurationChanged:
    mDuration = -1;
    break;
  case Event.ParsedChanged:
    postParse();
    return new Event(eventType, arg1);
  case Event.StateChanged:
    mState = -1;
    break;
  }
  return new Event(eventType);
}
origin: Shirlman/YiPlayer

@Override
protected synchronized Event onEventNative(int eventType, long arg1, float arg2) {
  switch (eventType) {
  case Event.MetaChanged:
    // either we update all metas (if first call) or we update a specific meta
    int id = (int) arg1;
    if (id >= 0 && id < Meta.MAX)
      mNativeMetas[id] = null;
    return new Event(eventType, arg1);
  case Event.DurationChanged:
    mDuration = -1;
    break;
  case Event.ParsedChanged:
    postParse();
    return new Event(eventType, arg1);
  case Event.StateChanged:
    mState = -1;
    break;
  }
  return new Event(eventType);
}
org.videolan.libvlcMediapostParse

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

  • 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 plugins for WebStorm
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