videojs / videojs-contrib-eme

Supports Encrypted Media Extensions for playback of encrypted content in Video.js
Other
203 stars 72 forks source link

Get current DRM #139

Open viniciusaffonso-hotmart opened 3 years ago

viniciusaffonso-hotmart commented 3 years ago

Is there any way to find out what DRM is being used?

Example; I'm using passing all keysystems.

{
    'keySystems': {
        'com.widevine.alpha': {},
        'com.apple.fps.1_0': {}
        'com.microsoft.playready': {}
    }
}
gkatsev commented 3 years ago

You should be able to get it via player.tech().el().keySystem. Seems like we don't actually expose it easily directly from this plugin.