Quality

March 11, 2024 ยท View on GitHub

Overview

This plugin allows the generation of a menu with different video/audio qualities, depending of the elements set in the tags, such as title and data-quality

Keyword to use it

features: [..., 'quality']

API

ParameterTypeDefaultDescription
defaultQualitystringnullInitial media quality; if null, it will take the first available source
qualityTextstringnullTitle for Quality button for WARIA purposes
qualityChangeCallbackcallbackAction that will be executed as soon as the user change video quality; passes 3 arguments: media (the wrapper that mimics all the native events/properties/methods for all renderers), node (the original HTML video, audio or iframe tag where the media was loaded originally and string newQuality
iconPathQualitystringmejs-quality-icon.svgPath for the SVG icon file