-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Have you read the Tutorials?
Yes.
Have you read the FAQ and checked for duplicate open issues?
Yes.
If the question is related to FairPlay, have you read the tutorial?
N/A
What version of Shaka Player are you using?
Version 4.14.7
What browser and OS are you using?
Chrome 134.0.6998.179 in CastLabs Electron Release v35.1.4
OS is Windows 11, but the issue/question is not related to the OS (could be MacOS as well)
Please ask your question
We have an Electron-based application for offline playback of videos that is build on top of:
- CastLabs Electron Release v29.1.6, that includes a VPM-signed Widevine CDM component.
- This Electron release contains Chrome 122.0.6261.139 for information.
- This Electron release contains Widevine CDM version 4.10.2891.0
- Shaka Player version v4.7.11
- Electron-updater for updates of the application.
The user downloads a video, the offline playback is OK. Then he performs an update of the application using the built-in app updater. After the update and relaunch, the application is now built on top of:
- CastLabs Electron Release v35.1.4, that still includes a VPM-signed Widevine CDM component.
- This Electron release contains Chrome 134.0.6998.179 for information.
- This Electron release contains Widevine CDM version 4.10.2891.0.
- Shaka Player version v4.14.7
- and of course still Electron-updater for updates of the application.
As you see, Electron has been updated from v29.1.6 to v35.1.4, shaka player has been updated from v4.7.11 to v4.14.7, but the version number of the Widevine CDM component has not changed (still 4.10.2891.0)
Although the version of the Widevine CDM component has not changed, the update of the application may cause I guess the installation of a new Widevine CDM component, since the Electron has been updated.
When the user now tries to play the downloaded video that was downloaded before the update, the playback fails with the following error:
Severity=CRITICAL(2) Category=DRM(6) Code=OFFLINE_SESSION_REMOVED(6013)
From the documentation, this error means that the required offline session was removed. Also it is noted that the content might not be playable "depending of the playback context", which is the case here, since the content is not playable anymore.
I guess session IDs are somehow referenced by the downloads, and after the update, the session identified by this ID is no longer there?
Is there anything I can do within Shaka Player to avoid this issue? A parameter/setting that would allow to create a new session that would be valid after the update for the already downloaded content? I see for instance in the codebase that the persistentSessionOnlinePlayback
setting if set turns the severity of such an OFFLINE_SESSION_REMOVED
error to RECOVERABLE
instead of CRITICAL
, but I am not sure if this setting is relevant w.r.t. to the issue I am facing.
Thank you for your help and suggestions on how to solve this problem... I don't know if it's a bug in shaka player, or an evolution to be done or a problem on my side?