videojs / videojs-contrib-eme

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

fix: excessive requests when using HDCP fallback with LDL #225

Closed harisha-swaminathan closed 1 week ago

harisha-swaminathan commented 2 months ago

When we have HDCP fallback and short-duration license, there are excessive requests because we're renewing licenses and subsequently fetching new licenses if the renewal fails. This can be avoided by taking an approach similar to Shaka player by not requesting a new license when the old one expires.

The PR also provides an option to limit license renewals when the player is idle (before playback begins, after playback ends and player abandoned in paused state).