ExoPlayer: Intermittent playback failures with Xiaomi devices on OS 12
Hello,
this is rather a question since we are unable to provide adb bugreport for deeper analysis.
The last few weeks we have been noticing in our analytics tool the following error from Xiaomi devices newly upgraded to the new OS 12.
android.media.MediaCodec.CryptoException - OK: OK
============================== Beginning of DRM Plugin Log ==============================
03-27 10:31:08.963 I found instance=clearkey version=android.hardware.drm@1.3::IDrmFactory
03-27 10:31:08.963 I found instance=widevine version=android.hardware.drm@1.3::IDrmFactory
03-27 10:31:13.091 W Cannot cast android.hardware.drm@1.0::IDrmPlugin obj to android.hardware.drm@1.4::IDrmPlugin plugin
03-27 10:42:58.402 W Cannot cast android.hardware.drm@1.0::ICryptoPlugin obj to android.hardware.drm@1.4::ICryptoPlugin plugin
============================== End of DRM Plugin Log ==============================
There is nothing in Crashlytics, though and no other brand is so far exhibiting the same issue with OS 12, only Xiaomi.
This is randomly occuring after some playback time of encrypted content without with player still in focus. It is happening with different content that other devices have no issues with, the Widevine license does not explicitly restrict anything.
Here it took a couple of minutes, the time 10:42:58 is when the session stopped with an error. From what we can ascertain, it concerns only OS 12, there are no reports of similar behavior from OS 11, the sent error message or stack itself would be of course different as this syntax is available since OS 12 but there is still nothing like that and users did not report anything with older OS versions and now they do with OS 12.
We are still running ExoPlayer 2.13.1 and although I can see that there were some compatibility enhancements with OS 12 in later revisions, there does not appear to be anything related to this particular issue.
Questions taking into account that there is not much to go on from the error message:
- Would upgrading ExoPlayer have a positive effect?
- What does OK mean in the first line of the exception?
- Is there any way you would be able to consult this with Xiaomi developers? Maybe they are already aware of something.
Thank you.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 43 (1 by maintainers)
@rrfrias Not sure what’s the problem here. Anyway, to prevent further sharing problems, the captured logs are attached here. mediaDrmMetrics.txt