shaka-project / shaka-player-embedded

Shaka Player in a C++ Framework
Apache License 2.0
239 stars 62 forks source link

How to save licenses so that player can play local widevine content offline #208

Closed yukihiro-m-play closed 2 years ago

yukihiro-m-play commented 3 years ago

Player request license information every time when player played widevine content saved locally. If player do not request license information, the following error will occur.

Error Message:

Domain=ShakaPlayerErrorDomain Code=6008 "Shaka Error DRM.LICENSE_RESPONSE_REJECTED (Unknown internal error.)" 
UserInfo={NSLocalizedDescription=Shaka Error DRM.LICENSE_RESPONSE_REJECTED (Unknown internal error.), ShakaPlayerErrorSeverityKey=2, ShakaPlayerErrorCategoryKey=6}

We have confirmed that player does not reacquire license information when playing widevine content downloaded with ShakaPlayerStorage. We think this behavior is different from the #201 answer. If player dont need to require license info with playing widevine content downloaded with ShakaPlayerStorage, is there a way to play without reacquiring license info like ShakaPlayerStorage do?

TheModMaker commented 3 years ago

If you want to store offline content, you should use ShakaPlayerStorage. You can't just store licenses to reuse them. Using ShakaPlayerStorage will cause us to request an offline license and the CDM will store the license persistently. We don't support requesting or reusing offline licenses for streaming playbacks. See also google/shaka-player#1956.

shaka-bot commented 2 years ago

@yukihiro-m-play Does this answer all your questions? Can we close the issue?

shaka-bot commented 2 years ago

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