This plugin enables digital rights management (DRM) for HLS and MPEG-DASH streams.
The current state of DRM on web is complicated due to the lack of cross-platform support. Different browsers and streaming technologies support different standards. With Wowza Flowplayer, we gathered different technologies under a single DRM plugin, making it simple to protect content when using the player.
The following table lists the DRM technologies the DRM plugin supports. If you use a DRM solution with one of the streaming protocols listed, you can deliver protected content in each of these supported browsers.
The hls.js library only supports FairPlay when the source uses fragmented MP4 encrypted segments. If the stream is fragmented into TS segments, it will only play if implemented natively. For this, you must configure the player with the native property.
To install the plugin, include it next to the core player:
<script src="//cdn.flowplayer.com/releases/native/3/stable/flowplayer.min.js"></script>
<script src="//cdn.flowplayer.com/releases/native/3/stable/plugins/drm.min.js"></script>Certain technologies only work on SSL secured web pages so make sure to use https when outside of localhost.
DRM is always configured per source. This is why the configuration also lives under the drm key in source configuration.
Configuration should be completed using the configuration constants under the flowplayer.drm namespace. All configuration options have to be set under the respective DRM protocol. See the configuration example.
You can use the following configuration constants under the flowplayer.drm namespace to define your DRM protocol and enable content protection.
The following example shows how to set up each DRM protocol and define configuration options for your media sources.
You can configure what vendor to use with the VENDOR configuration. For built-in implementations, use one of the strings in the following table.
If you end up with a no keys error displaying, it may mean that the player needs your help accessing the key system. To do this, pass the retrieval function in the DRM provider configuration: