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:: 6/8/25, 5:43 PM
Contributors: Luan