LibVLC 类 |
命名空间: LibVLCSharp.Shared
public class LibVLC : Internal
LibVLC 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() | LibVLC |
Create and initialize a libvlc instance.
This functions accept a list of "command line" arguments similar to the
main(). These arguments affect the LibVLC instance default configuration.
LibVLC may create threads. Therefore, any thread-unsafe process
initialization must be performed before calling libvlc_new(). In particular
and where applicable:
- setlocale() and textdomain(), - setenv(), unsetenv() and putenv(), - with the X11 display system, XInitThreads() (see also libvlc_media_player_set_xwindow()) and- on Microsoft Windows, SetErrorMode(). - sigprocmask() shall never be invoked; pthread_sigmask() can be used. On POSIX systems, the SIGCHLD signalmust notbe ignored, i.e. the signal handler must set to SIG_DFL or a function pointer, not SIG_IGN. Also while LibVLC is active, the wait() function shall not be called, and any call to waitpid() shall use a strictly positive value for the first parameter (i.e. the PID). Failure to follow those rules may lead to a deadlock or a busy loop. Also on POSIX systems, it is recommended that the SIGPIPE signal be blocked, even if it is not, in principles, necessary, e.g.: On Microsoft Windows Vista/2008, the process error mode SEM_FAILCRITICALERRORS flagmustbe set before using LibVLC. On later versions, that is optional and unnecessary. Also on Microsoft Windows (Vista and any later version), setting the default DLL directories to SYSTEM32 exclusively is strongly recommended for security reasons: Arguments are meant to be passed from the command line to LibVLC, just like VLC media player does. The list of valid arguments depends on the LibVLC version, the operating system and platform, and set of available LibVLC plugins. Invalid or unsupported arguments will cause the function to fail (i.e. return NULL). Also, some arguments may alter the behaviour or otherwise interfere with other LibVLC functions. There is absolutely no warranty or promise of forward, backward and cross-platform compatibility with regards to libvlc_new() arguments. We recommend that you do not use them, other than when debugging. |
名称 | 说明 | |
---|---|---|
![]() | AudioFilters | Returns a list of audio filters that are available. |
![]() | AudioOutputs | Gets the list of available audio output modules. |
![]() | Changeset | The changeset of the LibVLC engine currently used by LibVLCSharp |
![]() | DialogHandlersSet |
True if dialog handlers are set
|
![]() | LastLibVLCError |
A human-readable error message for the last LibVLC error in the calling
thread. The resulting string is valid until another error occurs (at least
until the next LibVLC call).
Null if no error.
|
![]() | LibVLCCompiler |
Retrieve the libvlc compiler version.
Example: "gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu6)"
|
![]() | NativeReference |
The pointer to the native code representation of this object
(继承自 Internal。) |
![]() | RendererList |
List of available renderers used to create RendererDiscoverer objects
Note: LibVLC 3.0.0 and later
|
![]() | Version | The version of the LibVLC engine currently used by LibVLCSharp |
![]() | VideoFilters | Returns a list of video filters that are available. |
名称 | 说明 | |
---|---|---|
![]() | AddInterface |
Try to start a user interface for the libvlc instance.
|
![]() | AudioOutputDevices | Gets a list of audio output devices for a given audio output module, |
![]() | ClearLibVLCError |
Clears the LibVLC error status for the current thread. This is optional.
By default, the error status is automatically overridden when a new error
occurs, and destroyed when the thread exits.
|
![]() | CloseLogFile |
Close log file handle
|
![]() | Dispose |
Dispose of this instance
(继承自 Internal。) |
![]() | Dispose(Boolean) |
Dispose of this libvlc instance
(重写 InternalDispose(Boolean).) |
![]() | Equals(Object) |
Determines whether two object instances are equal.
(重写 ObjectEquals(Object).) |
![]() | Equals(LibVLC) |
Determines whether two object instances are equal.
|
![]() | Finalize | (继承自 Object。) |
![]() | GetHashCode |
Returns the hashcode for this libvlc instance
(重写 ObjectGetHashCode.) |
![]() | GetType | (继承自 Object。) |
![]() | MediaDiscoverers | Get media discoverer services by category |
![]() | MemberwiseClone | (继承自 Object。) |
![]() | SetAppId | Sets some meta-information about the application. See also libvlc_set_user_agent(). |
![]() | SetDialogHandlers |
Register callbacks in order to handle VLC dialogs.
LibVLC 3.0.0 and later.
|
![]() | SetExitHandler | Registers a callback for the LibVLC exit event. This is mostly useful if the VLC playlist and/or at least one interface are started with libvlc_playlist_play() or libvlc_add_intf() respectively. Typically, this function will wake up your application main loop (from another thread). |
![]() | SetLogFile | Sets up logging to a file.
Watch out: Overwrite contents if file exists!
Potentially throws a VLCException if FILE * cannot be obtained
|
![]() | SetUserAgent | Sets the application name. LibVLC passes this as the user agent string when a protocol requires it. |
![]() | ToString | (继承自 Object。) |
![]() | UnsetDialogHandlers |
Unset dialog callbacks if previously set
|
名称 | 说明 | |
---|---|---|
![]() | Log |
The event that is triggered when a log is emitted from libVLC.
Listening to this event will discard the default logger in libvlc.
|
名称 | 说明 | |
---|---|---|
![]() ![]() | Equality |
Determines whether 2 instances of libvlc are equals
|
![]() ![]() | Inequality |
Determines whether 2 instances of libvlc are different
|
名称 | 说明 | |
---|---|---|
![]() | 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 定义。) |