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

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

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

origin: Shirlman/YiPlayer

/**
 * Create a Media from libVLC and a Uri
 *
 * @param libVLC a valid libVLC
 * @param uri a valid RFC 2396 Uri
 */
public Media(LibVLC libVLC, Uri uri) {
  nativeNewFromLocation(libVLC, locationFromUri(uri));
  mUri = uri;
}
origin: ymcao/YaPlayer

/**
 * Create a Media from libVLC and a Uri
 *
 * @param libVLC a valid libVLC
 * @param uri a valid RFC 2396 Uri
 */
public Media(LibVLC libVLC, Uri uri) {
  nativeNewFromLocation(libVLC, locationFromUri(uri));
  mUri = uri;
}
origin: ymcao/YaPlayer

/**
 * Add a slave (or subtitle) to the current media player.
 *
 * @param type see {@link Media.Slave.Type}
 * @param uri a valid RFC 2396 Uri
 * @return true on success.
 */
public boolean addSlave(int type, Uri uri, boolean select) {
  return nativeAddSlave(type, Media.locationFromUri(uri), select);
}
origin: Shirlman/YiPlayer

/**
 * Add a slave (or subtitle) to the current media player.
 *
 * @param type see {@link org.videolan.libvlc.Media.Slave.Type}
 * @param uri a valid RFC 2396 Uri
 * @return true on success.
 */
public boolean addSlave(int type, Uri uri, boolean select) {
  return nativeAddSlave(type, Media.locationFromUri(uri), select);
}
org.videolan.libvlcMedialocationFromUri

Javadoc

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

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

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Github Copilot 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