Files
YouTube.js/docs/api/namespaces/FormatUtils/functions/chooseFormat.md
2025-01-20 16:49:04 -03:00

687 B

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