[][src]Type Definition libmpv_sys::mpv_stream_cb_size_fn

type mpv_stream_cb_size_fn = Option<unsafe extern "C" fn(cookie: *mut c_void) -> i64>;

Size callback used to implement a custom stream.

Return MPV_ERROR_UNSUPPORTED if no size is known.

This callback can be NULL, in which it behaves as if always returning MPV_ERROR_UNSUPPORTED.

@param cookie opaque cookie identifying the stream, returned from mpv_stream_cb_open_fn @return the total size in bytes of the stream