Skip to content

Interface: PadProperties ​

Well-known pad properties. Elements add their own by augmenting this interface.

Properties ​

accessibleWindow? ​

optional accessibleWindow?: number

Seconds: the catalog's accessibleWindowTime (MSF 5.2.46). Live only; absent means no DVR.


decoderConfig? ​

optional decoderConfig?: Omit<VideoDecoderConfig, "description"> | Omit<AudioDecoderConfig, "description">

The WebCodecs decoder config of a track without a container, such as LOC (LOC 2.3.2.1, 2.3.3.1). Its description is initData.


duration? ​

optional duration?: number

Seconds, for VOD MediaSource.duration.


groupDuration? ​

optional groupDuration?: number

Seconds: the catalog's maxGroupDuration, else the observed group duration.


initData? ​

optional initData?: Uint8Array<ArrayBufferLike>

The track's codec configuration: a CMAF Header, or the LOC VIDEO_CONFIG or AUDIO_CONFIG bytes.


live? ​

optional live?: boolean


mimeType? ​

optional mimeType?: string

Including codec, e.g. video/mp4; codecs="avc1.64001f".


seekable? ​

optional seekable?: object

Seconds: the media timeline's range, after accessibleWindowTime.

end ​

end: number

start ​

start: number


targetLatency? ​

optional targetLatency?: number

Seconds: the catalog's targetLatency, else buffers.target.


timescale? ​

optional timescale?: number

Units per second of the track's LOC Timestamps (LOC 2.3.1.2). Absent or undefined, they're µs since the Unix epoch.


track? ​

optional track?: string

The active track of the switching set.