YouTube.js
Guide
Discord
GitHub
Guide
Discord
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:: 3/25/25, 8:08 PM
Contributors: EdamAme-x