Owns the per-source media state slot. Tech-agnostic: a controller (e.g.
VideoElementController for HTMLVideoElement)
is responsible for translating its underlying medium into transitions on
mediaState and updates on mediaInfo.
Exposes:
MediaState — StateMachineAtom<MediaState> for qualitative playback state
(Detached | Playing | Paused | Seeking | Stalled | Ended | Error).
MediaState.package
Owns the per-source media state slot. Tech-agnostic: a controller (e.g.
VideoElementControllerfor HTMLVideoElement) is responsible for translating its underlying medium into transitions onmediaStateand updates onmediaInfo.Exposes:
MediaState—StateMachineAtom<MediaState>for qualitative playback state (Detached | Playing | Paused | Seeking | Stalled | Ended | Error).MediaInfo— per-scalar atoms (currentTime,duration,volume,muted,playbackRate,error).SeekRestriction— whether seeking is allowed; seeded from the source'spreventSeekingplayback config.MediaStatePackage Dependency Graph