Skip to Content

title: SourceMediaItemBase

Interface: SourceMediaItemBase

Extended by

interface SourceMediaItemBase {    src: string;    duration?: number;    id?: string;    liveEdgeOnly?: boolean;    mimetype?: Mimetype;    playbackMode?: PlaybackMode;    userTier?: UserTier;    validUntil?: number;    wasExpiredAtLoad?: boolean;}

Properties

src

src: string

The source URL of this media source.


duration?

optional duration: number

Duration in seconds. Only relevant for dynamic content.


id?

optional id: string

Unique identifier of the media source.

Default Value

V1StGXR8_Z5jdHi6B-myT a generated identifier


liveEdgeOnly?

optional liveEdgeOnly: boolean

When true, playback must always remain at the live edge. Seeking behind the live edge is not permitted.

Default Value

undefined (treated as false — timeshift / seek-back is allowed)


mimetype?

optional mimetype: Mimetype

Mimetype of the media source.

Default Value

detected from file extension of given src or undefined


playbackMode?

optional playbackMode: PlaybackMode

Playback mode of the media source (e.g. determines VOD or Live).

Default Value

PlaybackMode.VOD


userTier?

optional userTier: UserTier

Classification of the user’s access level for this source.

Default Value

undefined (user tier is unknown or not applicable)


validUntil?

optional validUntil: number

Until the media source is valid. Unix timestamp in milliseconds.


wasExpiredAtLoad?

optional wasExpiredAtLoad: boolean

true when this source’s signed token was already expired when resolved. Used to skip the expiry reload, which would otherwise re-resolve the same dead token in a loop. Re-derived on every resolve.