shaka-project/shaka-player

Widevine content being downloaded for offline playback, but not Playready

Closed this issue · 3 comments

Have you read the FAQ and checked for duplicate open issues?
Yes

If the problem is related to FairPlay, have you read the tutorial?

What version of Shaka Player are you using?

4.11.17

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?
Both

If custom app, can you reproduce the issue using our demo app?
Yes

What browser and OS are you using?
Microsoft Edge

For embedded devices (smart TVs, etc.), what model and firmware version are you using?
N/A

What are the manifest and license server URIs?
Sent via email

What configuration are you using? What is the output of player.getNonDefaultConfiguration()?

What did you do?
I wish to enable offline playback of my DRM videos. I am able to download the video if it is not DRM Encrypted, or if it is encrypted with Widevine. When i try to do the same with Playready encrypted videos, i get the following error : https://shaka-player-demo.appspot.com/docs/api/shaka.util.Error.html#value:6006

Shaka Error DRM.FAILED_TO_GENERATE_LICENSE_REQUEST (Failed to execute 'generateRequest' on 'MediaKeySession': Failed to create MF PR CdmSession (2154823689),NotSupportedError: Failed to execute 'generateRequest' on 'MediaKeySession': Failed to create MF PR CdmSession (2154823689),)

https://shaka-player-demo.appspot.com/

  • Load the mpd url into the player, along with the license server url. The video plays in Microsoft Edge. When i try to download it, it throws the above error. When i loaded a widevine packaged url along with the license server url, i was able to download it and play it offline.

What did you expect to happen?
I expected the playready content to get downloaded and play offline.

What actually happened?

Are you planning send a PR to fix it?

I've found some code errors and bugs in the documentation, I'll fix all of these and come back to this issue as soon as all PRs are merged.

Using the nightly demo the content of MSS PR is downloadable, can you check if it works in your case?

https://nightly-dot-shaka-player-demo.appspot.com/demo/#audiolang=en-US;textlang=en-US;uilang=en-US;panel=ALL_CONTENT;panelData=drm:PLAYREADY,OFFLINE;build=uncompiled

Things that have changed in the demo to make this content work:

  • com.microsoft.playready.recommendation is used instead of com.microsoft.playready (Only Edge Windows)
  • A license url is used that allows persistent licenses

Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including @shaka-bot reopen in a comment.