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

googlevideo / exports/sabr-stream / SabrPlaybackOptions

Interface: SabrPlaybackOptions

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:48

Properties

audioFormat?

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

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:59

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


audioLanguage?

optional audioLanguage: string

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:79

Preferred audio language code.


audioQuality?

optional audioQuality: string

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:69

Preferred audio quality (e.g., "high", "medium").


enabledTrackTypes?

optional enabledTrackTypes: EnabledTrackTypes

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:117

Enabled track types for streaming (audio only, video only, or both).

See

EnabledTrackTypes


maxRetries?

optional maxRetries: number

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:105

Maximum number of retry attempts when fetching segments. Default is 10.


preferH264?

optional preferH264: boolean

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:94

Whether to prefer H.264 video codec.


preferMP4?

optional preferMP4: boolean

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:89

Whether to prefer MP4 container format.


preferOpus?

optional preferOpus: boolean

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:99

Whether to prefer Opus audio codec.


preferWebM?

optional preferWebM: boolean

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:84

Whether to prefer WebM container format.


stallDetectionMs?

optional stallDetectionMs: number

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:111

Duration in milliseconds after which a stall is detected if no progress is made. Default is 30000 (30 seconds).


state?

optional state: SabrStreamState

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:122

Previously saved state to resume a download.


videoFormat?

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

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:53

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


videoLanguage?

optional videoLanguage: string

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:74

Preferred video language code.


videoQuality?

optional videoQuality: string

Defined in: codeberg/googlevideo/src/types/sabrStreamTypes.ts:64

Preferred video quality (e.g., "1080p", "720p").

Edit this page
Last Updated: 7/24/25, 1:11 PM