Module player-types/packages/media-state/MediaState.package

MediaState.package

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:

  • MediaStateStateMachineAtom<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's preventSeeking playback config.

MediaState Package Dependency Graph

MediaState
Source

References

Variables

References

Renames and re-exports MediaStatePackage

Generated using TypeDoc