Features

Quality

Adaptive bitrate quality selection for HLS and DASH.

Quality selection needs real variant streams, so it applies to adaptive HLS and DASH on the native <video> path. YouTube, Vimeo, and Dailymotion expose no quality override - they manage it themselves inside their iframe. Brightcove and JW Player get it wherever their resolved source is adaptive. Plain MP4 has no variants, so no Quality menu.

Remembering the viewer's choice

A level the viewer picks is remembered across players and across reloads, like captions and volume. The next video starts at roughly that resolution, snapping to the nearest rung it offers, and picking Auto is remembered just as firmly.

The quality prop is the host speaking, so it wins outright and leaves no trace: setting it never records a preference on the viewer's behalf. With neither a prop nor a stored choice, the engine's own Auto stands.

Adaptive HLS / DASH

A Quality option appears on its own once hls.js or dash.js has parsed the manifest's resolution variants - nothing to switch on:

<VideoCard src="https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/master.m3u8" />

Loading player…

Apple's bipbop stream declares several resolution variants - open the controls and Quality lists them, starting on Auto.

Selecting a level

The control cycles Auto → highest → … → lowest → Auto. Auto leaves the streaming engine's adaptive bitrate algorithm in control; picking a level pins it and disables ABR until you restore Auto.

Programmatically, setQuality(height) selects a level and null restores Auto, firing qualitychange once playback has started - on your own calls and on the engine's own ABR switches alike. It takes the same unit as the prop, a height in pixels, and snaps to the nearest level on offer. Levels are exposed as { index, height, bitrate, label }.

Asking for a height

The prop takes the same unit as the method: a target height in pixels - the 720 in 720p - and the player picks the nearest level each source actually offers, as soon as its levels are known. null forces Auto. It's one-way, like playbackRate: a level the viewer picks by hand stands until the prop changes.

<VideoCard :src="src" :quality="720" />

The qualitychange event carries qualityHeight so a host can mirror the pick in its own UI. Carrying it from video to video needs no help: the player stores the choice itself (see above). The shorts feed uses the event only to name the new level in a toast.

The list is one rung per resolution, ascending, not one per manifest variant. A ladder usually carries each resolution several times over at different bitrates and codecs - bipbop above lists 1080p nine times - so each height is represented by its highest-bitrate variant, and audio-only renditions are left out. That makes height unique across the list, which is why it, rather than the engine's own index, is what the prop, the method and the event all speak in.

Safari plays HLS natively, and native HLS offers no manual quality-override hook - so the Quality menu won't appear there, while captions still work.
munsonlabs · MIT licensed · © 2026