react-native-video: Error 24003 on Android 11 when paused

Bug

Platform

Android 11

Environment info

Library version: V6 - Beta 4

Device: Pixel 4

Emulator Screenshot: https://cln.sh/6HzmH2Db

Steps To Reproduce

  1. Build Basic example on device.
  2. Pause video then wait few seconds. We get an error and we can not play video anymore.

After that, we can not play video anymore unless we press on play button multiple times, and we get "ExoPlaybackException: ERROR_CODE_DECODING_FAILED" with error 24003.

Expected behaviour

  1. Pausing video should not cause error
  2. Playing video after pause should work immediately from first click.

Reproducible sample code

Just use Basic Example provided by repo.

Video sample

https://cln.sh/kr2r5PGR

Error Log

Video Stream Error:  {"error": {"errorCode": "24003", "errorException": "androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(3, null, null, video/avc, avc1.4D401F, 2800000, null, [1280, 720, -1.0, null], [-1, -1]), format_supported=YES", "errorStackTrace": "androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(3, null, null, video/avc, avc1.4D401F, 2800000, null, [1280, 720, -1.0, null], [-1, -1]), format_supported=YES

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 27

Most upvoted comments

This has been really problematic as its breaking the whole video functionality on any Android 11 version. More than 20% of android users are on this version. Android 11 is only from 2020.

Any suggestions @KrzysztofMoch @freeboub ?

Thanks

I don’t have any physical Android 11. But it happens every time on simulator. Can you try it on Android 11 emulator on your end please?

Getting same issue 🙁