Media 类 |
命名空间: LibVLCSharp.Shared
public class Media : Internal
Media 类型公开以下成员。
名称 | 说明 | |
---|---|---|
Media(MediaList) |
Create a media from a media list
| |
Media(LibVLC, MediaInput, String) |
Create a media from a MediaInput
requires libvlc 3.0 or higher
| |
Media(LibVLC, Int32, String) |
Create a media for an already open file descriptor.
The file descriptor shall be open for reading(or reading and writing).
Regular file descriptors, pipe read descriptors and character device
descriptors(including TTYs) are supported on all platforms.
Block device descriptors are supported where available.
Directory descriptors are supported on systems that provide fdopendir().
Sockets are supported on all platforms where they are file descriptors,
i.e.all except Windows.
\note This library will not automatically close the file descriptor
under any circumstance.Nevertheless, a file descriptor can usually only be
rendered once in a media player.To render it a second time, the file
descriptor should probably be rewound to the beginning with lseek().
| |
Media(LibVLC, Uri, String) |
Media Constructs a libvlc Media instance
| |
Media(LibVLC, String, FromType, String) |
Media Constructs a libvlc Media instance
|
名称 | 说明 | |
---|---|---|
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
|
名称 | 说明 | |
---|---|---|
AddOption(String) | Add an option to the media. | |
AddOption(MediaConfiguration) |
Convenience method for crossplatform media configuration
| |
AddOptionFlag | Add an option to the media with configurable flags. | |
AddSlave | Add a slave to the current media. | |
ClearSlaves | Clear all slaves previously added by libvlc_media_slaves_add() or internally. | |
CodecDescription | Get a media's codec description | |
Dispose |
Dispose of this instance
(继承自 Internal。) | |
Dispose(Boolean) |
Dispose of this media
(重写 InternalDispose(Boolean).) | |
Duplicate | Duplicate a media descriptor object. | |
Equals |
Equality override for this media instance
(重写 ObjectEquals(Object).) | |
Finalize | (继承自 Object。) | |
GetHashCode |
Custom hascode implemenation for this Media instance
(重写 ObjectGetHashCode.) | |
GetType | (继承自 Object。) | |
MemberwiseClone | (继承自 Object。) | |
Meta | Read the meta of the media. | |
Parse |
Parse the media asynchronously with options.
It uses a flag to specify parse options (see MediaParseOptions). All these flags can be combined. By default, the media is parsed only if it's a local file.
Note: Parsing can be aborted with ParseStop().
| |
ParseStop | Stop the parsing of the media | |
SaveMeta | Save the meta previously set | |
SetMeta | Set the meta of the media (this function will not save the meta, call libvlc_media_save_meta in order to save the meta) | |
ToString | (继承自 Object。) |
名称 | 说明 | |
---|---|---|
DurationChanged |
The duration of the media changed
| |
MediaFreed |
The media was freed on the native side
| |
MetaChanged |
The meta information changed
| |
ParsedChanged |
The parsing status changed
| |
StateChanged |
The media state changed
| |
SubItemAdded |
A sub item was added to this media's MediaList
| |
SubItemTreeAdded |
A sub item tree was added to this media
|
名称 | 说明 | |
---|---|---|
IsDisposed |
Indicates whether this object has already been disposed
(继承自 Internal。) | |
Release |
Release native resources by calling this C function
(继承自 Internal。) |
名称 | 说明 | |
---|---|---|
ConvertTo |
类型转换
(由 ObjectExtenstions 定义。) | |
Delay |
延迟操作
(由 ObjectExtenstions 定义。) | |
Equal |
对象是否相等
(由 ObjectExtenstions 定义。) | |
GetCreationCode | (由 ObjectExtenstions 定义。) | |
GetPropretyValue |
获取对象属性值
(由 ObjectExtenstions 定义。) | |
GetValue |
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。) | |
Invoke |
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。) | |
SetPropretyValue |
设置属性值
(由 ObjectExtenstions 定义。) | |
SetValue |
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。) |