AbstractCurrent media duration in seconds. May be updated at runtime.
FFOM (First Frame of Media) timecode model derived from load options.
Frame rate model derived from load options or the media source.
Unique identifier (UUID).
The duration originally reported at load time, before any runtime updates.
Time offset of the initialization segment, if applicable.
Whether the media source is DRM-protected.
Current load lifecycle stage (idle → loading → success / failure).
The format of the media source (HLS, MP4, or AUDIO_FILE).
Discriminator indicating whether this entity is a main media or a track.
Observable stream of lifecycle events (loading, loaded, error, updated).
The resolved media source.
The resolved file format type of the source.
Serializable state snapshot of this entity.
Tracks associated with this media (video, audio, text, markers, etc.).
Register multiple tracks with this media.
Transition the load stage to "failure" and emit a MainMediaEventType.MAIN_MEDIA_LOAD_ERROR event.
Transition the load stage to "loading" and emit a MainMediaEventType.MAIN_MEDIA_LOADING event.
Transition the load stage to "success" and emit a MainMediaEventType.MAIN_MEDIA_LOADED event.
Partially update mutable media attributes and emit a MainMediaEventType.MAIN_MEDIA_UPDATED event.
Primary media entity representing the loaded video or audio source.
A
MainMediaholds the media source, its associated tracks, load lifecycle state, and runtime attributes (DRM, duration, frame rate, timecode model). Extends MediaEntity withmediaTypealways set to MediaEntityType.MAIN_MEDIA.