question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onError fires on Android 9 or lower (Only in production)

See original GitHub issue

Bug

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

  1. Set up the video player within an app
  2. Package the app for production
  3. Test the video player on an Android device OS 9 or lower

Expected behaviour

  1. The video should play properly with no error

Thanks in advanced for any help with this!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
jeffmoncommented, Aug 9, 2022

Thanks for responding, @freeboub!

0reactions
freeboubcommented, Aug 21, 2022

I close this ticket as legacy media player implementation has been dropped on V6

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found