点击或拖拽改变大小

Media 属性

Media 类型公开以下成员。

属性
  名称说明
公共属性Duration
Get duration (in ms) of media descriptor object item.
公共属性IsParsed
Return true is the media descriptor object is parsed
公共属性Mrl
Get the media resource locator (mrl) from a media descriptor object
公共属性NativeReference
The pointer to the native code representation of this object
(继承自 Internal。)
公共属性ParsedStatus
Get Parsed status for media descriptor object.
公共属性Slaves
Get a media descriptor's slave list
公共属性State
Get current VLCState of media descriptor object.
公共属性Statistics
Get the current statistics about the media structure that contain the statistics about the media
公共属性SubItems

Get subitems of media descriptor object. This will increment

the reference count of supplied media descriptor object. Use

libvlc_media_list_release() to decrement the reference counting.

公共属性Tracks
Get media descriptor's elementary streams description

address to store an allocated array of Elementary Streams

descriptions (must be freed with libvlc_media_tracks_release

by the caller) [OUT]

返回值

类型:
the number of Elementary Streams (zero on error)
备注

Note, you need to call libvlc_media_parse() or play the media at least once

before calling this function.

Not doing this will result in an empty array.

LibVLC 2.1.0 and later.

公共属性Type
The type of the media
Top
参见