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

youtubei.js / FormatUtils / chooseFormat

Function: chooseFormat()

chooseFormat(options, streaming_data?): Format

Selects the format that best matches the given options.

Parameters

• options: FormatOptions

Options

• streaming_data?: IStreamingData

Streaming data

Returns

Format

Defined in

src/utils/FormatUtils.ts:138

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