mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
cc97da167f
Add capability to re-use persistent license sessions across sessions. DrmEngine will now always: - try to start stored persistent sessions before trying to fetch a license, as-to be able to check if all needed keys are already loaded. - ask for a new license when the persistent session doesn't have the needed keys for playback, Given the flag `persistentSessionOnlinePlayback` is true, DrmEngine: - won't remove the persistent session from the device at the end of the playback, - won't throw an error when the persistent session isn't found on the device, For now, it needs Shaka's users to persist session information by themselves (localStorage, IndexDB, ...) before giving it back for the next session. Still, it lays foundation to develop the feature to fully handling it on Shaka's side. Related to #1956