video.js MPEG-DASH Source Handler
A video.js source handler for supporting MPEG-DASH playback through a video.js player on browsers with support for Media Source Extensions.
Table of Contents
Download videojs-contrib-dash. Include it in your web page along with video.js:
<!-- videojs-contrib-dash stylesheet --><!-- videojs-contrib-dash script -->
videojs-contrib-dash contains the code of Dash.js, so there is no need to load it separately.
Checkout our live example if you're having trouble.
If the browser supports Encrypted Media Extensions and includes a Content Decryption Module for one of the protection schemes in the dash manifest, video.js will be able to playback protected content.
For most protection schemes, the license server information (URL & init data) is included inside the manifest. The notable exception to this is Widevine-Modular (WV). To playback WV content, you must provide the URL to a Widevine license server proxy.
For this purpose, videojs-contrib-dash adds support for a "keySystemOptions" array to the object when using the
- In all available and supported browsers:
- In a specific browser:
npm run test:chrome,
npm run test:firefox, etc.
- While development server is running, navigate to
http://localhost:9999/test/(note: port may vary, check console output)
Tag and Release
- Make sure everything is committed.
npm version *where
patch, etc. Read more about versioning.
Apache-2.0. Copyright (c) Brightcove, Inc.