Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Server experience: media

cinnabar:server-experience/media@1.5.0

Media IDs reference signed descriptors, never guest-selected URLs.

Grants: The signed client bundle’s media permission and indexed descriptors.

Types

operation

Playback requests against a signed media descriptor.

enum operation {
    prepare,
    play,
    pause,
    seek,
    stop,
}
MemberTypeDescription
prepare
play
pause
seek
stop

Functions

control

control: func(id: string, op: operation, position-ms: u64) -> result<_, string>;

Requests playback state or a seek position in milliseconds for an authorized media ID.

Types: operation.