shaka-project / shaka-player-embedded

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

Playback failed with widevine content on iOS14 #161

Closed yukihiro-m-play closed 4 years ago

yukihiro-m-play commented 4 years ago

Playback failed and error occur with widevine content in ShakaPlayer Embedded Sample Project on iOS14. ShakaPlayer Embedded Sample Project include cdm v15.

[ErrorMessage]
Shaka Error DRM.FAILED_TO_GENERATE_LICENSE_REQUEST
(Requires devices certificate.,[object DOMException].)
[ErrorCode]
6006

Shaka Player Config and Contents setting is as follows:

[uri]
 https://storage.googleapis.com/wvmedia/cenc/h264/tears/tears_sd.mpd
[configuration]
 key=drm.servers.com\.widevine\.alpha
 value=https://proxy.staging.widevine.com/proxy

The cdm framework build command is as follows:

../configure --ios --cpu arm64 --eme-impl ../../prebuilt_cdm/shaka_plugin/release_cdm.json --disable-demo --disable-tests
../build.py

And we tried and confirmed the following:

Is there anything setting we are missing?

TheModMaker commented 4 years ago

Make sure to use CDM 15.2.4, there was a bug on the older versions that don't support iOS 14.

yukihiro-m-play commented 4 years ago

We used CDM 15.2.4, but playback failed same error.

yukihiro-m-play commented 4 years ago

We updated to widevine_cdm_secured_ios.framework for Release and succeeded in playing widevine content. Thank you for your support and sorry about this inconvinient.