shaka-project / shaka-player-embedded

Shaka Player in a C++ Framework
Apache License 2.0
236 stars 63 forks source link

Live Widevine-encrypted DASH playback fails after some time #132

Closed okycelt closed 4 years ago

okycelt commented 4 years ago

Issue description

When playing live Widevine-encrypted DASH, after some time, the playback fails with the following errors:

[ERROR:_oecc48:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/src/oemcrypto_tfit.cc(195)] [OEMCrypto_DecryptCTR(): OEMCrypto_ERROR_INVALID_CONTEXT]
[ERROR:/var/lib/jenkins/workspace/CDM_Arxan_Create_Release/oemcrypto-arxan/third_party/cdm/cdm/src/cdm.cpp(1212):decrypt] Decrypt error: 1
onPlayer(error: Error Domain=ShakaPlayerErrorDomain Code=0 "Error decrypting frame" UserInfo={NSLocalizedDescription=Error decrypting frame, ShakaPlayerErrorSeverityKey=0, ShakaPlayerErrorCategoryKey=0})
onPlayer(error: Error Domain=ShakaPlayerErrorDomain Code=3016 "Shaka Error MEDIA.VIDEO_ERROR (3,,Error decrypting frame)" UserInfo={NSLocalizedDescription=Shaka Error MEDIA.VIDEO_ERROR (3,,Error decrypting frame), ShakaPlayerErrorSeverityKey=2, ShakaPlayerErrorCategoryKey=3})

Reproduction steps

  1. Play live Widevine-encrypted DASH
  2. The playback should fail after some time

Link to test content

We could provide a live Widevine-encrypted stream, but we would also have to provide a ShakaPlayerNetworkFilter implementation to enable communication with our Widevine proxy.

Logs captured from the device

spe_wv_decryption_error.txt

Version of Shaka Player Embedded

a8acedfa8152e341d97a2d3829c182b3e80c407a (at this moment latest master)

Version of prebuilt_cdm

9f98df73ad5674eb31bebd983ec903c076314069 (at this moment latest master)

Device(s) and version(s) of iOS being used

iPhone XR with iOS 13.4.1 Simulator with iOS 13.4

TheModMaker commented 4 years ago

Try pulling the latest prebuilt_cdm; I just pushed a new commit that may fix this. If it is still an issue, could you please send us steps to play your content. You can send it privately to shaka-player-issues@google.com.

okycelt commented 4 years ago

Thank you, @TheModMaker. It seems to have helped.