mpv_stream_cb_open_ro_fn

Open callback used to implement a custom read-only (ro) stream. The user must set the callback fields in the passed info struct. The cookie field also can be set to store state associated to the stream instance.

Note that the info struct is valid only for the duration of this callback. You can't change the callbacks or the pointer to the cookie at a later point.

Each stream instance created by the open callback can have different callbacks.

The close_fn callback will terminate the stream instance. The pointers to your callbacks and cookie will be discarded, and the callbacks will not be called again.

@param user_data opaque user data provided via mpv_stream_cb_add() @param uri name of the stream to be opened (with protocol prefix) @param info fields which the user should fill @return 0 on success, MPV_ERROR_LOADING_FAILED if the URI cannot be opened.

extern (C)
alias mpv_stream_cb_open_ro_fn = int function

Meta