ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

MediaCodec$CryptoException: Unknown Error

Open Gian84 opened this issue 9 years ago • 3 comments

Issue description

When I try to play a Widevine protected content I get a CryptoException only when EME is greater than L2. Devices I have used are indicated as L1, so contents should start correctly. I know Nexus bug about securityLevel on Qualcom processor but Nexus 6P and skipper should work. mErrorCode: -2998 detailMessage: Unknown Error mErrorCode I get it is not appears in docs, what does it mean?

Reproduction steps

  • set security level from license server side (EME) to L1 or L2
  • try to play wv protected content from client -> ok: content starts correctly
  • set security level from license server side (EME) to L3 or L5
  • try to play wv protected content from client -> ko: MediaCodec$CryptoException: Unknown Error

Link to test content

Content uri via email.

Version of ExoPlayer being used

ExoPlayer 2.4.3

Device(s) and version(s) of Android being used

Skipper (https://www.tim.it/tv/nuovo-decoder-timvision) - Android 6.0.1 Nexus 5 - Android 6.0.1 Nexus 6P - Android 7.1.1 (Patch securityLevel 05/01/2017)

A full bug report captured from the device

adb bugreport via email

Gian84 avatar Jul 14 '17 10:07 Gian84

Unfortunately the N5 has release with an HDCP issue, from the OEM. This is not slated to be addressed. Recommendation is not to require HDCP on N5

wvpaf avatar Jul 18 '17 22:07 wvpaf

Thank you for the info. Maybe I understood the problem, it was the audio stream security level. So probably it is my error on Widevine side and not Exoplayer side, sorry and thanks again.

Gian84 avatar Jul 25 '17 09:07 Gian84

Hi Gian84, would you mind sharing what security level settings you set to make this work? We've been encountering the same problem.

Jiekai avatar Aug 18 '17 14:08 Jiekai