shaka-player
shaka-player copied to clipboard
Persistent licenses not working
Have you read the FAQ and checked for duplicate open issues? Yes
If the problem is related to FairPlay, have you read the tutorial? Not related to fairplay
What version of Shaka Player are you using? 4.11
Can you reproduce the issue with our latest release version? Yes
Can you reproduce the issue with the latest code from main
?
Yes
Are you using the demo app or your own custom app? Custom App
If custom app, can you reproduce the issue using our demo app? Demo app dont have the persistent license playback for online
What browser and OS are you using? Chrome on MacOS
For embedded devices (smart TVs, etc.), what model and firmware version are you using? NA
What are the manifest and license server URIs? Happening for all manifests
What did you do? I am sturing the persistent licenses for online playback. And for the next play for same video I am passing the persistent session metadata. But before the offline licenses are loaded, a new license request is made. So persistent license passed is not used.
Please note that this is for online playback. I have followed the tutorial https://shaka-player-demo.appspot.com/docs/api/tutorial-drm-config.html Code is like below:
player.configure({
drm: {
persistentSessionOnlinePlayback: true,
persistentSessionsMetadata: [{
sessionId: 'deadbeefdeadbeefdeadbeefdeadbeef',
initData: new InitData(0),
initDataType: 'cenc'
}]
}
});
I can confirm that the session in persistent session. I modified the code to stop the new request and the offline loaded session works properly. The code I modified is not proper and hence cannot give PR
What did you expect to happen? Persistent licenses should be used for online playback
What actually happened? Persistent licenses are not used for online playback. Before the persistent license session is loaded a new license request is made.
Are you planning send a PR to fix it? No.