[][src]Module libmpv::protocol

Custom protocols (protocol://$url) for playback

Structs

Protocol

Protocol holds all state used by a custom protocol.

ProtocolContext

This context holds state relevant to custom protocols. It is created by calling Mpv::create_protocol_context.

Type Definitions

StreamClose

Do any necessary cleanup.

StreamOpen

Return a persistent T that is passed to all other Stream* functions, panic on errors.

StreamRead

Target buffer with fixed capacity. Return either the number of read bytes, 0 on EOF, or either -1 or panic on error.

StreamSeek

Seek to the given offset. Return the new offset, or either MpvError::Generic if seeking failed or panic.

StreamSize

Return the total size of the stream in bytes. Panic on error.