@byomakase/omakase-player
    Preparing search index...

    Class BaseMainMedia<S>Abstract

    Primary media entity representing the loaded video or audio source.

    A MainMedia holds the media source, its associated tracks, load lifecycle state, and runtime attributes (DRM, duration, frame rate, timecode model). Extends MediaEntity with mediaType always set to MediaEntityType.MAIN_MEDIA.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Accessors

    • get duration(): number | undefined

      Current media duration in seconds. May be updated at runtime.

      Returns number | undefined

    • get ffomTimecodeModel(): TimecodeModel | undefined

      FFOM (First Frame of Media) timecode model derived from load options.

      Returns TimecodeModel | undefined

    • get frameRateModel(): FrameRateModel | undefined

      Frame rate model derived from load options or the media source.

      Returns FrameRateModel | undefined

    • get initialDuration(): number | undefined

      The duration originally reported at load time, before any runtime updates.

      Returns number | undefined

    • get initSegmentTimeOffset(): number | undefined

      Time offset of the initialization segment, if applicable.

      Returns number | undefined

    • get isDrm(): boolean | undefined

      Whether the media source is DRM-protected.

      Returns boolean | undefined

    Methods