Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 947 Bytes

quality.md

File metadata and controls

20 lines (15 loc) · 947 Bytes

Quality

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

Parameter Type Default Description
defaultQuality string null Initial media quality; if null, it will take the first available source
qualityText string null Title for Quality button for WARIA purposes
qualityChangeCallback callback Action 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
iconPathQuality string mejs-quality-icon.svg Path for the SVG icon file