Expand description
Playing media: playback sessions and range reads.
StartPlayback (an RPC) plans the item and returns a
PlaybackHandle. The client then reads the file in ranges, each on its
own crate::streams::bi::RESOURCE stream, wrapped with the playback
revision in crate::resource::ResourceRequest. These media structs
describe the request and SDK result; the resource header announces the
raw body length. Several reads may be in flight at once. End of file is
offset + sent == size; a read at or past the end has sent = 0.
Structs§
- Media
Read - Media
Read Reply - What follows on the stream. Every field is required.
- Playback
Handle - A playback session on the server: one planned file, bound to the session and endpoint that started it. Opaque to the client.
Enums§
Constants§
- MAX_
READ - The largest range one read returns. A reply shorter than asked is normal: the client asks again from where it stopped.