videojs / videojs-contrib-eme

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

fix: getOptions after encrypted event #209

Closed adrums86 closed 5 months ago

adrums86 commented 6 months ago

Fixes an issue where the player options might not be set by the time the 'encrypted' event listener is attached, which can erroneously follow the MediaKeys flow instead of WebkitMediaKeys when legacy fairplay is keysystem. Also adds some debug logging to better track this behavior.

...and no, surprisingly the original typo was not the actual problem. 😄