onError fires on Android 9 or lower (Only in production)
See original GitHub issueBug
When attempting to play a video on an Android 9 or lower device (In a production build), onError fires, which returns as true. No other error messages appear. When running locally via react-native run-android, the error doesn’t happen and the video plays normally.
Platform
Android OS 9 or lower (Only in production)
Environment info
System:
OS: macOS 12.3
CPU: (10) arm64 Apple M1 Pro
Memory: 1.19 GB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 17.8.0 - /opt/homebrew/bin/node
Yarn: 1.22.18 - /opt/homebrew/bin/yarn
npm: 8.5.5 - /opt/homebrew/bin/npm
Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8193401
Xcode: 13.3/13E113 - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /Users/jeffmon/.sdkman/candidates/java/current/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: ^0.66.4 => 0.66.4
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Library version: 5.2.0
Steps To Reproduce
- Set up the video player within an app
- Package the app for production
- Test the video player on an Android device OS 9 or lower
Expected behaviour
- The video should play properly with no error
Thanks in advanced for any help with this!
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
onError fires on Android 9 or lower (Only in production) - PullAnswer
When attempting to play a video on an Android 9 or lower device (In a production build), onError fires, which returns as true...
Read more >Configure on demand delivery - Android Developers
To test on demand functionality of your app, you must either share your app with a URL or set up an open, closed,...
Read more >Why is Chrome's onerror event for the img element only fired ...
In the fiddle, when the initial image in the src attribute is not found, it fires the onerror event which changes the img...
Read more >Futures and error handling | Dart
In the example above, if myFunc() 's Future completes with a value, then() 's callback fires. If no new error is produced within...
Read more >The 10 Most Common JavaScript Issues Developers Face
And moreover, is only referenced in the main body of replaceThing and in the function unused which is, in fact, never used.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks for responding, @freeboub!
I close this ticket as legacy media player implementation has been dropped on V6