点击或拖拽改变大小

LibVLC 类

Main LibVLC API object representing a libvlc instance in native code. Note: You may create multiple mediaplayers from a single LibVLC instance
继承层次

命名空间:  LibVLCSharp.Shared
程序集:  CPF.Vlc (在 CPF.Vlc.dll 中) 版本:0.8.8.5
语法
C#
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.
Top
属性
  名称说明
公共属性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.
Top
方法
  名称说明
公共方法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
Top
事件
  名称说明
公共事件Log
The event that is triggered when a log is emitted from libVLC. Listening to this event will discard the default logger in libvlc.
Top
运算符
  名称说明
公共运算符静态成员Equality
Determines whether 2 instances of libvlc are equals
公共运算符静态成员Inequality
Determines whether 2 instances of libvlc are different
Top
字段
  名称说明
受保护的字段IsDisposed
Indicates whether this object has already been disposed
(继承自 Internal。)
受保护的字段Release
Release native resources by calling this C function
(继承自 Internal。)
Top
扩展方法
  名称说明
公共扩展器方法ConvertTo
类型转换
(由 ObjectExtenstions 定义。)
公共扩展器方法Delay
延迟操作
(由 ObjectExtenstions 定义。)
公共扩展器方法Equal
对象是否相等
(由 ObjectExtenstions 定义。)
公共扩展器方法GetCreationCode (由 ObjectExtenstions 定义。)
公共扩展器方法GetPropretyValue
获取对象属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法GetValue
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法Invoke
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。)
公共扩展器方法SetPropretyValue
设置属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法SetValue
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。)
Top
参见