Skip to content
FrameworkStyle

Quality

Video rendition state and actions for the player store

Tracks video renditions and selects a manual rendition or automatic adaptive bitrate.

Import

import { qualityFeature } from '@videojs/html';

The videoFeatures feature bundle includes this feature.

API Reference

State

PropertyTypeDetails
videoRenditionListMediaVideoRendition[]
activeVideoRendition{ id?: string; width?: number; height?: number; bitrate?: number; frameRate?: number; codec?: string; selected: boolean } | null

Actions

ActionTypeDetails
selectVideoRendition(value: string) => void

Selector

Pass selectQuality to PlayerController to subscribe to quality state. Returns undefined if the quality feature is not configured.

import { createPlayer, UIElement, selectQuality } from '@videojs/html';
import { videoFeatures } from '@videojs/html/video';

const { PlayerController } = createPlayer({ features: videoFeatures });

class QualityInfo extends UIElement {
  readonly #quality = new PlayerController(this, selectQuality);
}