[go: nahoru, domu]

Skip to content
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

Unable to play Linear DRM: LinearDrm: PlaybackException MediaCodecAudioRenderer error, index=1, format=Format(7, eng, null, audio/mp4a-latm, mp4a.40.2, 93000, en, [-1, -1, -1.0], [2, 48000]), format_supported=YES #1445

Closed
rambodevelop opened this issue Jun 11, 2024 · 3 comments

Comments

@rambodevelop
Copy link

LinearDrm: PlaybackException MediaCodecAudioRenderer error, index=1, format=Format(7, eng, null, audio/mp4a-latm, mp4a.40.2, 93000, en, [-1, -1, -1.0], [2, 48000]), format_supported=YES

playerFailed [eventTime=277.67, mediaPos=0.00, window=0, period=0, errorCode=ERROR_CODE_DRM_SYSTEM_ERROR
com.google.android.exoplayer2.ExoPlaybackException: MediaCodecAudioRenderer error, index=1, format=Format(7, eng, null, audio/mp4a-latm, mp4a.40.2, 93000, en, [-1, -1, -1.0], [2, 48000]), format_supported=YES
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:562)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:211)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: android.media.MediaCodec$CryptoException: Crypto key not available
at android.media.MediaCodec.native_queueSecureInputBuffer(Native Method)
at android.media.MediaCodec.queueSecureInputBuffer(MediaCodec.java:2608)
at com.google.android.exoplayer2.mediacodec.SynchronousMediaCodecAdapter.queueSecureInputBuffer(SynchronousMediaCodecAdapter.java:171)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.feedInputBuffer(MediaCodecRenderer.java:1307)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:780)
at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:982)
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:486)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:211)
at android.os.HandlerThread.run(HandlerThread.java:65)
]

@icbaker
Copy link
Collaborator
icbaker commented Jun 12, 2024

Please provide the additional info requested in the bug issue template - without this it's hard for us to offer any assistance:

  • Result of adb bugreport shortly after reproducing the problem
  • Indication of which devices it reproduces on (especially if you have some devices it doesn't reproduce on)
  • Links to media and drm license server we can use to reproduce the issue.

Please either post these here or send them to android-media-github@google.com with the subject Issue #1445. Please also update this issue to indicate you’ve done this.

@rrfrias
Copy link
rrfrias commented Jun 25, 2024

If the exception is only retrieved from telemetry data (and a bugreport is not possible), can you get Widevine metrics data after a failure occurs. Use MediaDrm.getPropertyByteArray("metrics") . This returns a byte[] so you might need to convert it to a Base64 encoded string before you share with us (Base64.getEncoder().encodeToString(bytes)) .

Email android-media-github@google.com as mentioned in the previous comment and update this issue after you have done this.

@rambodevelop
Copy link
Author

added .setMultiSession(true) and able to play the DRM content and audio also supporting

@androidx androidx locked and limited conversation to collaborators Sep 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants