Home | Trees | Indices | Help |
---|
|
object --+ | _Ctype --+ | Media
Create a new Media instance.
Usage: Media(MRL, *options)
See vlc.Instance.media_new documentation for details.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
a new object with type S, a subtype of T |
|
||
Inherited from |
|
|||
Inherited from |
|
|
Add a list of options to the media. Options must be written without the double-dash. Warning: most audio and video options, such as text renderer, have no effects on an individual media. These options must be set at the vlc.Instance or vlc.MediaPlayer instanciation.
|
Get media descriptor's elementary streams description Note, you need
to call parse() or
play the media at least once before calling this function. Not doing this
will result in an empty array. The result must be freed with Version: LibVLC 2.1.0 and later. |
Add an option to the media. This option will be used to determine how the media_player will read the media. This allows to use VLC's advanced reading/streaming options on a per-media basis.
Note: The options are listed in 'vlc --long-help' from the command line, e.g. "-sout-all". Keep in mind that available options and their semantics vary across LibVLC versions and builds. Warning:
Not all options affects Media objects: Specifically, due to architectural
issues most audio and video options, such as text renderer options,
have no effects on an individual media. These options must be set
through |
Add an option to the media with configurable flags. This option will be used to determine how the media_player will read the media. This allows to use VLC's advanced reading/streaming options on a per-media basis. The options are detailed in vlc --long-help, for instance "--sout-all". Note that all options are not usable on medias: specifically, due to architectural issues, video-related options such as text renderer options cannot be set on a single media. They must be set on the whole libvlc instance instead.
|
Retain a reference to a media descriptor object (Media). Use release() to decrement the reference count of a media descriptor object. |
Decrement the reference count of a media descriptor object. If the reference count is 0, then release() will release the media descriptor object. It will send out an libvlc_MediaFreed event to all listeners. If the media descriptor object has been released it should not be used again. |
Get the media resource locator (mrl) from a media descriptor object.
|
Read the meta of the media. If the media has not yet been parsed this will return None. See parse See parse_with_options See libvlc_MediaMetaChanged.
|
Set the meta of the media (this function will not save the meta, call save_meta in order to save the meta).
|
Save the meta previously set.
|
Get current state of media descriptor object. Possible media states are libvlc_NothingSpecial=0, libvlc_Opening, libvlc_Playing, libvlc_Paused, libvlc_Stopped, libvlc_Ended, libvlc_Error. See State.
|
Get the current statistics about the media.
|
Get subitems of media descriptor object. This will increment the
reference count of supplied media descriptor object. Use
|
Decorator. Caches a parameterless method's return value each time it is called. If called later with the same arguments, the cached value is returned (not reevaluated). Adapted from https://wiki.python.org/moin/PythonDecoratorLibrary
|
Get duration (in ms) of media descriptor object item.
|
Parse the media asynchronously with options. This fetches (local or network) art, meta data and/or tracks information. This method is the extended version of parse_with_options(). To track when this is over you can listen to libvlc_MediaParsedChanged event. However if this functions returns an error, you will not receive any events. It uses a flag to specify parse options (see MediaParseFlag). All these flags can be combined. By default, media is parsed if it's a local file.
Note: Parsing can be aborted with parse_stop(). See libvlc_MediaParsedChanged See get_meta See tracks_get See get_parsed_status See MediaParseFlag. Version: LibVLC 3.0.0 or later. |
Stop the parsing of the media When the media parsing is stopped, the libvlc_MediaParsedChanged event will be sent with the libvlc_media_parsed_status_timeout status. See parse_with_options. Version: LibVLC 3.0.0 or later. |
Get Parsed status for media descriptor object. See libvlc_MediaParsedChanged See MediaParsedStatus.
Version: LibVLC 3.0.0 or later. |
Sets media descriptor's user_data. user_data is specialized data accessed by the host application, VLC.framework uses it as a pointer to an native object that references a Media pointer.
|
Get media descriptor's user_data. user_data is specialized data accessed by the host application, VLC.framework uses it as a pointer to an native object that references a Media pointer. |
Get the media type of the media descriptor object.
Version: LibVLC 3.0.0 and later. See MediaType. |
Add a slave to the current media. A slave is an external input source that may contains an additional subtitle track (like a .srt) or an additional audio track (like a .ac3).
Note:
This function must be called before the media is parsed (via parse_with_options()) or before the media is
played (via Version: LibVLC 3.0.0 and later. |
Clear all slaves previously added by slaves_add() or internally. Version: LibVLC 3.0.0 and later. |
Get a media descriptor's slave list The list will contain slaves parsed by VLC or previously added by slaves_add(). The typical use case of this function is to save a list of slave in a database for a later use.
Version: LibVLC 3.0.0 and later. See slaves_add. |
Parse a media. This fetches (local) art, meta data and tracks information. The method is synchronous. \deprecated This function could block indefinitely. Use L{parse_with_options}() instead See L{parse_with_options} See L{get_meta} See L{get_tracks_info}. |
Parse a media. This fetches (local) art, meta data and tracks information. The method is the asynchronous of L{parse}(). To track when this is over you can listen to libvlc_MediaParsedChanged event. However if the media was already parsed you will not receive this event. \deprecated You can't be sure to receive the libvlc_MediaParsedChanged event (you can wait indefinitely for this event). Use L{parse_with_options}() instead See L{parse} See libvlc_MediaParsedChanged See L{get_meta} See L{get_tracks_info}. |
Return true is the media descriptor object is parsed \deprecated This can return true in case of failure. Use L{get_parsed_status}() instead See libvlc_MediaParsedChanged. @return: true if media object has been parsed otherwise it returns false \libvlc_return_bool. |
Get media descriptor's elementary streams description Note, you need to call parse() or play the media at least once before calling this function. Not doing this will result in an empty array. \deprecated Use tracks_get() instead.
|
Create a Media Player object from a Media.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat Jul 25 13:13:08 2020 | http://epydoc.sourceforge.net |