videojs / videojs-contrib-eme

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

Get latest player options when handling encrypted and msneedkey events #207

Closed mdwyer-od closed 6 months ago

mdwyer-od commented 6 months ago

I noticed an error as we tried to update to v5.1.0. We were unable to get media keys because the player options had changed between being set at the start of onPlayerReady and when they were used in handling the encrypted event.