shaka-player-embedded
shaka-player-embedded copied to clipboard
App Crashing - When we remove the offline widevine's DRM content.
trafficstars
Hello,
I am using shaka-player-embedded version of 1.0.0 and widevine prebuild version of 15.2.4.
I am working on offline download and playback stuffs. Offline download and playback is working fine. Once I downloaded the content, when I try to remove that. I getting one assertion in widevine Implementation class.

Please help me to resolve this issue. If you need any more info, Let me know.
Used:
Manifest: https://storage.googleapis.com/shaka-demo-assets/angel-one-widevine/dash.mpd
License URL: https://cwip-shaka-proxy.appspot.com/no_auth
Code for remove the Downloaded File:
self.storage?.remove("offline:manifest/idb/v3/1", with: { (error) in
completion?(error)
})
Console Logs:
[Log]: "Mounting v3 idb storage cell"
[Log]: "Mounting session ID idb storage cell"
[Info]: "Created MediaKeys object for key system" "com.widevine.alpha"
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(120):OpenSession] CdmEngine::OpenSession
[DEBUG:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/crypto_session.cpp(644):Open] CryptoSession::Open: requested_security_level: Default
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/usage_table_header.cpp(38):Init] UsageTableHeader::Init: security level: 3
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/usage_table_header.cpp(70):Init] UsageTableHeader::Init: number of usage entries: 0
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/device_files.cpp(155):ExtractDeviceInfo] ExtractDeviceInfo Entry
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(156):OpenSession] CdmEngine::OpenSession: ksid2BC4E681
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(413):RestoreKey] CdmEngine::RestoreKey: session ID: ksid2BC4E681, key set ID: ksid2BC4E681
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/cdm_engine.cpp(242):GenerateKeyRequest] CdmEngine::GenerateKeyRequest: ksid2BC4E681
[DEBUG:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/core/src/license.cpp(477):PrepareKeyUpdateRequest] PrepareKeyUpdateRequest: nonce=4052534479
[INFO:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1090):remove] A license release has been generated.
Assertion failed: (got_server_certificate_), function Update, file ../prebuilt_cdm/shaka_plugin/widevine_implementation.cc, line 350.
Assertion failed: (got_server_certificate_), function Update, file ../prebuilt_cdm/shaka_plugin/widevine_implementation.cc, line 350.
CoreSimulator 732.17 - Device: iPhone 11 Pro Max (D26F5FBF-BCE8-43FC-BB19-36088770962F) - Runtime: iOS 14.1 (18A8394) - DeviceType: iPhone 11 Pro Max