Closed onefarad closed 4 years ago
It works fine for me on both an armv7 and arm64 device. What version of the CDM and Shaka Player Embedded are you using? What are the flags you passed to ./configure
?
Steps I performed:
../configure --ios --cpu arm64 --eme-impl ~/prebuilt_cdm/shaka_plugin/dev_cdm.json
sample_xcode_project
sample_xcode_project/build.sh
to do nothingsample_xcode_project/sample_xcode_project/assets.plist
to include your new assetIf you define a client, do you get any error logs?
@interface ViewController () <ShakaPlayerClient>
@end
@implementation ViewController
- (void)onPlayerError:(ShakaPlayerError *)error {
NSLog(@"Async error: %@", [error message]);
}
...
@end
[player setClient:self];
To help debug, you could edit this part of the decrypt operation to log the requested key ID and the existing key IDs (using cdm->GetKeyStatuses). You could also log here for when we get the license back. The Widevine CDM synchronously loads the session, so after it returns we should have the keys.
CDM version used is 15.2.1. Shaka Player Embedded downloaded from GitHub.
configure --ios --eme-impl ~/shaka/prebuilt_cdm/shaka_plugin/dev_cdm.json
Just passed the asset as seen in the code.
Will try the way you suggested, adding more logs, and get back to you with an answer.
Retrying what you suggested and doing everything mentioned above did not work.
Reinstalling MacOS (back to Mojave), XCode and recompiling everything made things work flawless. The versions of Shaka Player Embedded and CDM used were the latest from repositories.
Sorry for the troubles and thanks for involvement.
Hello,
We are trying to use Shaka Player Embedded integrated with Widevine DRM. Compiling CDM into Shaka Player Embedded worked smoothly according to the CDM and Shaka Player Embedded documentation.
Content that is not encrypted works fine, as expected.
When switching to DRM protected content the player just freezes when trying to display encrypted content. Tests were done using Widevine sample provided content and Shaka Packager prepared content. The below content/proxy has problems only on IOS - everything works fine on Exoplayer and Browser.
Same results on iPhone 5s iPhone X.
According to proxy logs, license was issued corectly. Widevine team sugested I submit this issue; below is the code used to start player and logs. Any thoughts on this problem?
How the payer framework was used:
Application log for iPhone 5s is below: