chooseFormat
chooseFormat(
formats,options?):VideoFormat
Filters, then picks by quality. A filter list picks with its first entry that yields a format. An
explicit format is matched in formats, so a fresh list’s URL replaces a stale one. A DRC variant
is picked only when no original matches, and a dubbed audio track only when no original-language track does.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
formats |
readonly VideoFormat[] |
options? |
ChooseFormatOptions |