YouTube.js
Guide
Discord
❤️ Sponsor
GitHub
Guide
Discord
❤️ Sponsor
GitHub

googlevideo / exports/sabr-stream / SabrPlaybackOptions

Interface: SabrPlaybackOptions

Defined in: src/types/sabrStreamTypes.ts:124

Properties

videoFormat?

optional videoFormat: number | SabrFormat | (formats) => SabrFormat | undefined

Defined in: src/types/sabrStreamTypes.ts:128

Can be a format ID number, a SabrFormat object, or a function that selects a format from the available formats array.


audioFormat?

optional audioFormat: number | SabrFormat | (formats) => SabrFormat | undefined

Defined in: src/types/sabrStreamTypes.ts:132

Can be a format ID number, a SabrFormat object, or a function that selects a format from the available formats array.


videoPreferences?

optional videoPreferences: VideoFormatPreferences

Defined in: src/types/sabrStreamTypes.ts:133


audioPreferences?

optional audioPreferences: AudioFormatPreferences

Defined in: src/types/sabrStreamTypes.ts:134


maxRetries?

optional maxRetries: number

Defined in: src/types/sabrStreamTypes.ts:139

Maximum number of retries for failed requests.

Default

10

stallDetectionMs?

optional stallDetectionMs: number

Defined in: src/types/sabrStreamTypes.ts:144

Duration in milliseconds after which a stall is detected if no progress is made.

Default

30_000

enabledTrackTypes?

optional enabledTrackTypes: EnabledTrackTypes

Defined in: src/types/sabrStreamTypes.ts:145


startTimeMs?

optional startTimeMs: number

Defined in: src/types/sabrStreamTypes.ts:146


isPostLiveDvr

isPostLiveDvr: boolean

Defined in: src/types/sabrStreamTypes.ts:147


snapshot?

optional snapshot: SabrSnapshot

Defined in: src/types/sabrStreamTypes.ts:151

If provided, the stream will attempt to continue from the given snapshot.

Edit this page
Last Updated: 10/18/26, 4:42 AM