react-native-video: Users keep randomly getting errors in video playback of HLS links
Bug
I used Sentry as Error Tracking Software to trace errors in my app and there are 3 kinds of error that my users keep randomly receiving:
For Android:
- Unable to instantiate decoder OMX.qcom.video.decoder.avc
- Unable to instantiate decoder OMX.Exynos.avc.dec
- Unable to connect to (Fragment of HLS video) (Unrecognized media format)
For iOS:
- NSURLErrorDomain
-
I already commented on this thread: https://github.com/react-native-community/react-native-video/issues/1664#issuecomment-514048113, and I saw this thread is still opening also: https://github.com/react-native-community/react-native-video/issues/1068
-
I have used different versions of
react-native-video(v4.3.1, v4.4.4, v5.0.2), I also migrated from react native 0.58.4 to 0.61.1, about 1 year has passed, but those errors are still not resolved. -
I changed multiple providers for HLS links but nothing changes (I used Vimeo, Cloudflare, …)
-
I already increased the value of attribute
minLoadRetryCountbut it couldn’t help
Platform
- iOS
- Android ExoPlayer
Environment info
React native info output:
System:
OS: macOS 10.15
CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
Memory: 288.86 MB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 10.15.1 - ~/.nvm/versions/node/v10.15.1/bin/node
Yarn: 1.13.0 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.15.1/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.0, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
Android SDK:
API Levels: 23, 27, 28
Build Tools: 27.0.3, 28.0.2, 28.0.3
System Images: android-27 | Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 11.0/11A420a - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.1 => 0.61.1
Library version: “react-native-video”: “^5.0.2”,
Steps To Reproduce
Those errors randomly happen, sometimes everything is working fine, but sometimes those errors appear
Expected behaviour
The video playback should be consistently fine
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16
Also getting an error for
mpdfrom CloudFront. Error getting ononErrorcallback:{error:{extra:-214748348, what:1}}+1 same happening at multiple videos in carousel with auto-playing on focused video
Oh I see. I tried the null and URL solution, but seems like it doesn’t work at all. Thank for the reply though. I hope they solve this problem soon.
+1
When having multiple videos in flatlist and autoplaying when they come in view, after a few videos the error occurs: Unable to instantiate decoder OMX.qcom.video.decoder.avc
PS: I am on the latest react-native-video version and using exoplayer