|
libmpv
20200718-git-96cdf53
development library for the MPV media player
|
Looking for a C++ dev? I'm looking for work. Hire me!
|
|
Go to the documentation of this file.
16 #ifndef MPV_CLIENT_API_STREAM_CB_H_
17 #define MPV_CLIENT_API_STREAM_CB_H_
void(* mpv_stream_cb_close_fn)(void *cookie)
Close callback used to implement a custom stream.
int64_t(* mpv_stream_cb_seek_fn)(void *cookie, int64_t offset)
Seek callback used to implement a custom stream.
int(* mpv_stream_cb_open_ro_fn)(void *user_data, char *uri, mpv_stream_cb_info *info)
Open callback used to implement a custom read-only (ro) stream.
int64_t(* mpv_stream_cb_read_fn)(void *cookie, char *buf, uint64_t nbytes)
Warning: this API is not stable yet.
mpv_stream_cb_close_fn close_fn
mpv_stream_cb_cancel_fn cancel_fn
int mpv_stream_cb_add_ro(mpv_handle *ctx, const char *protocol, void *user_data, mpv_stream_cb_open_ro_fn open_fn)
Add a custom stream protocol.
mpv_stream_cb_seek_fn seek_fn
mpv_stream_cb_size_fn size_fn
struct mpv_handle mpv_handle
Client context used by the client API.
int64_t(* mpv_stream_cb_size_fn)(void *cookie)
Size callback used to implement a custom stream.
void(* mpv_stream_cb_cancel_fn)(void *cookie)
Cancel callback used to implement a custom stream.
struct mpv_stream_cb_info mpv_stream_cb_info
See mpv_stream_cb_open_ro_fn callback.
mpv_stream_cb_read_fn read_fn
Callbacks set by the user in the mpv_stream_cb_open_ro_fn callback.
void * cookie
Opaque user-provided value, which will be passed to the other callbacks.
See mpv_stream_cb_open_ro_fn callback.