Expand description
Custom protocols (protocol://$url) for playback
Structs§
- Protocol
Protocolholds all state used by a custom protocol.- Protocol
Context - This context holds state relevant to custom protocols.
It is created by calling
Mpv::create_protocol_context.
Type Aliases§
- Stream
Close - Do any necessary cleanup.
- Stream
Open - Return a persistent
Tthat is passed to all otherStream*functions, panic on errors. - Stream
Read - Target buffer with fixed capacity.
Return either the number of read bytes,
0on EOF, or either-1or panic on error. - Stream
Seek - Seek to the given offset. Return the new offset, or either
MpvError::Genericif seeking failed or panic. - Stream
Size - Return the total size of the stream in bytes. Panic on error.