Add Player.retryLicensing() #1772
Labels
flag: seeking PR
We are actively seeking PRs for this; we do not currently expect the core team will resolve this
priority: P2
Smaller impact or easy workaround
type: enhancement
New feature or request
Milestone
Have you read the FAQ and checked for duplicate open issues?
Yes.
Is your feature request related to a problem? Please describe.
This is a follow up on #1771
If shaka player signaled the app that there are no keys available, then the app can decide to take an action.
Describe the solution you'd like
Player.retryRequest()
will restart from creating a newMediaKeySession
, from the sameMediaKeys
instance that is attached to the media element, and generates a request (MediaKeySession.generateRequest()
).For "persistent-license" sessions, use
MediaKeySession.load()
instead.Basically it restarts from loading a license into the CDM.
Describe alternatives you've considered
If it is going to be a configuration rather than an notification to the app, this doesn't need to be exposed, but the functionality is still required.
Additional context
This may be also useful for other cases. For example, if the user decides to put their computer to sleep for the duration of the license, and when they wake up the computer, all the keys are "expired". The app may decide to call
Player.retryRequest()
to "renew" the license.The text was updated successfully, but these errors were encountered: