点击或拖拽改变大小

LibVLCSetExitHandler 方法

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).

命名空间:  LibVLCSharp.Shared
程序集:  CPF.Vlc (在 CPF.Vlc.dll 中) 版本:0.8.8.5
语法
C#
public void SetExitHandler(
	ExitCallback cb
)

参数

cb
类型:LibVLCSharp.SharedExitCallback

callback to invoke when LibVLC wants to exit,

or NULL to disable the exit handler (as by default)

备注

This function should be called before the playlist or interface are

started. Otherwise, there is a small race condition: the exit event could

be raised before the handler is registered.

This function and libvlc_wait() cannot be used at the same time.

参见