libmpv  20200718-git-96cdf53
development library for the MPV media player
Looking for a C++ dev?
I'm looking for work. Hire me!
mpv_stream_cb_info Struct Reference

See mpv_stream_cb_open_ro_fn callback. More...

#include <stream_cb.h>

Public Attributes

void * cookie
 Opaque user-provided value, which will be passed to the other callbacks. More...
 
mpv_stream_cb_read_fn read_fn
 Callbacks set by the user in the mpv_stream_cb_open_ro_fn callback. More...
 
mpv_stream_cb_seek_fn seek_fn
 
mpv_stream_cb_size_fn size_fn
 
mpv_stream_cb_close_fn close_fn
 
mpv_stream_cb_cancel_fn cancel_fn
 

Detailed Description

See mpv_stream_cb_open_ro_fn callback.

Definition at line 169 of file stream_cb.h.

Member Data Documentation

◆ cancel_fn

mpv_stream_cb_cancel_fn mpv_stream_cb_info::cancel_fn

Definition at line 189 of file stream_cb.h.

◆ close_fn

mpv_stream_cb_close_fn mpv_stream_cb_info::close_fn

Definition at line 188 of file stream_cb.h.

◆ cookie

void* mpv_stream_cb_info::cookie

Opaque user-provided value, which will be passed to the other callbacks.

The close callback will be called to release the cookie. It is not interpreted by mpv. It doesn't even need to be a valid pointer.

The user sets this in the mpv_stream_cb_open_ro_fn callback.

Definition at line 177 of file stream_cb.h.

◆ read_fn

mpv_stream_cb_read_fn mpv_stream_cb_info::read_fn

Callbacks set by the user in the mpv_stream_cb_open_ro_fn callback.

Some of them are optional, and can be left unset.

The following callbacks are mandatory: read_fn, close_fn

Definition at line 185 of file stream_cb.h.

◆ seek_fn

mpv_stream_cb_seek_fn mpv_stream_cb_info::seek_fn

Definition at line 186 of file stream_cb.h.

◆ size_fn

mpv_stream_cb_size_fn mpv_stream_cb_info::size_fn

Definition at line 187 of file stream_cb.h.


The documentation for this struct was generated from the following file: