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).
License is not renewed if it expires before playback begins if limitRenewalsBeforePlay is set to true. New requests are made on 'play'
License is not renewed after playback ends by default. New requests are made on 'replay' or 'seek back'
License is not renewed if player remains paused for more than a specified duration that's set using limitRenewalsMaxPauseDuration option
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).
limitRenewalsBeforePlay
is set to true. New requests are made on 'play'limitRenewalsMaxPauseDuration
option