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
public void SetExitHandler( ExitCallback cb )
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.