Type
DurationMetadataRequestOptions
Options for retrieving media duration from metadata.
ts
type DurationMetadataRequestOptions = {
skipLiveWait?: boolean;
};Used by
Input.getDurationFromMetadata()InputAudioTrack.getDurationFromMetadata()InputTrack.getDurationFromMetadata()InputVideoTrack.getDurationFromMetadata()
Properties
skipLiveWait
ts
skipLiveWait?: boolean;When the underlying media is live, querying the duration will, by default, wait until the live stream has ended. Setting this field to true skips that wait and returns the current duration of the stream. When the media isn't live, this field has no effect.
See also PacketRetrievalOptions.skipLiveWait.