-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRM & ClearKey 1.4.X Unexpected runtime error #1732
Comments
We didn't receive this. Please re-send it with subject |
Done |
The email contains a logcat snippet, not the zip file produced by |
Updated the email with |
Thanks - please can you add an Please can you also provide a BR of a successful playback using 1.3.1, so we can understand what might be behaving differently. |
Updated, please check |
Thanks - I can't see any However I can see a difference between the two BRs without this, that I suspect is responsible for the error you're seeing. At 1.3.1 we are instantiating an "insecure" (i.e. not HW-secure) video decoder:
At 1.4.0 we are instantiating a HW-secure one (note the
ClearKey doesn't support HW-secure playback. At a guess, I suspect the change in behaviour might have been introduced by c872af4 where we switched from using We made a related follow-up fix/workaround that was included in 1.4.1 where In your case, my hypothesis would suggest that If you have a local dependency on ExoPlayer this is quite easy, because you can just add some logging here in media/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/mediacodec/MediaCodecRenderer.java Lines 579 to 584 in be4d31b
Something like: if (codecDrmSession != null
&& (codecDrmSession.getState() == DrmSession.STATE_OPENED
|| codecDrmSession.getState() == DrmSession.STATE_OPENED_WITH_KEYS)) {
Log.w(
"issue-1732",
"drmSession.requiresSecureDecoder()="
+ codecDrmSession.requiresSecureDecoder(checkStateNotNull(inputFormat.sampleMimeType));
}
if (mediaCrypto != null) {
Log.w(
"issue-1732",
"mediaCrypto.requiresSecureDecoderComponent()="
+ mediaCrypto.requiresSecureDecoderComponent(checkStateNotNull(mimeType));
} |
Version
Media3 1.4.0
More version details
From 1.4.0 and up has this issue, downgrading to 1.3.1 fixes it
Devices that reproduce the issue
Amazon FireTV Stick 4K (Mantis)
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
I can provide sample ClearKey link in private to test
Expected result
Media working like in 1.3.1
Actual result
Media
Will send to [email protected]
Bug Report
adb bugreport
to [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: