androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android

Home Page:https://developer.android.com/media/media3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

rambodevelop opened this issue · comments

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)
]

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.

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.