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

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

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

origin: ymcao/YaPlayer

/**
 * Create a Media from libVLC and a FileDescriptor
 *
 * @param libVLC a valid LibVLC
 * @param fd file descriptor object
 */
public Media(LibVLC libVLC, FileDescriptor fd) {
  nativeNewFromFd(libVLC, fd);
  mUri = UriFromMrl(nativeGetMrl());
}
origin: ymcao/YaPlayer

/**
 * Create a Media from libVLC and a local path starting with '/'.
 *
 * @param libVLC a valid libVLC
 * @param path an absolute local path
 */
public Media(LibVLC libVLC, String path) {
  nativeNewFromPath(libVLC, path);
  mUri = UriFromMrl(nativeGetMrl());
}
origin: Shirlman/YiPlayer

/**
 * Create a Media from libVLC and a FileDescriptor
 *
 * @param libVLC a valid LibVLC
 * @param fd file descriptor object
 */
public Media(LibVLC libVLC, FileDescriptor fd) {
  nativeNewFromFd(libVLC, fd);
  mUri = UriFromMrl(nativeGetMrl());
}
origin: Shirlman/YiPlayer

/**
 * Create a Media from libVLC and a local path starting with '/'.
 *
 * @param libVLC a valid libVLC
 * @param path an absolute local path
 */
public Media(LibVLC libVLC, String path) {
  nativeNewFromPath(libVLC, path);
  mUri = UriFromMrl(nativeGetMrl());
}
origin: ymcao/YaPlayer

/**
 *
 * @param ml Should not be released and locked
 * @param index index of the Media from the MediaList
 */
protected Media(MediaList ml, int index) {
  if (ml == null || ml.isReleased())
    throw new IllegalArgumentException("MediaList is null or released");
  if (!ml.isLocked())
    throw new IllegalStateException("MediaList should be locked");
  nativeNewFromMediaList(ml, index);
  mUri = UriFromMrl(nativeGetMrl());
}
origin: Shirlman/YiPlayer

/**
 *
 * @param ml Should not be released and locked
 * @param index index of the Media from the MediaList
 */
protected Media(MediaList ml, int index) {
  if (ml == null || ml.isReleased())
    throw new IllegalArgumentException("MediaList is null or released");
  if (!ml.isLocked())
    throw new IllegalStateException("MediaList should be locked");
  nativeNewFromMediaList(ml, index);
  mUri = UriFromMrl(nativeGetMrl());
}
org.videolan.libvlcMediaUriFromMrl

Javadoc

VLC authorize only "-._~" in Mrl format, android Uri authorize "_-!.~'()*". Therefore, decode the characters authorized by Android Uri when creating an Uri from VLC.

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

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JOptionPane (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best plugins for Eclipse
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