Video.js source handler for supporting Fairplay streaming.
This source handler only supports encrypted HLS playback. It does not contain any fallbacks. The premise is to use this in tandem with videojs-contrib-dash to support encrypted playback in all* browsers.
If the browser (a.k.a Safari) supports Encrypted Media Extensions and includes a Content Decryption Module, video.js will be able to playback protected content.
- Fairplay content cannot be played if
TextTracks exist. Beyond embedding them within the manifest, the only way to side load them is after the keys are updated.
- New Fairplay content cannot be played once MediaKeys have been attached to the video element (Unless its the same source). To get around this issue we need to clear those keys.
- Combining the issues of #1 and #2. Before you can play another source, you must clear out the existing
playertracks_;// the current `TextTrack` implementation operates on events and because of this we have to wait a// tick before executing a reset, otherwise the `TextTrack`s will get picked up in its associated `Tech`.;
Contributing + Example
npm install -g grunt-cli # only needed for contributingnpm installnpm start
Code licensed under The MIT License.