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:

  1. Unable to instantiate decoder OMX.qcom.video.decoder.avc
  2. Unable to instantiate decoder OMX.Exynos.avc.dec
  3. Unable to connect to (Fragment of HLS video) (Unrecognized media format)

For iOS:

  1. NSURLErrorDomain

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

Most upvoted comments

Also getting an error for mpd from CloudFront. Error getting on onError callback: {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