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.

API Reference

State

Property Type Details
videoRenditionList MediaVideoRendition[]
activeVideoRendition null | MediaVideoRendition

Actions

Action Type Details
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, MediaElement, selectQuality } from '@videojs/html';
import { videoFeatures } from '@videojs/html/video';

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

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