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.

Android: Video not loading

See original GitHub issue

I’m using Expo.Video to render videos whose source is the Vimeo API. It can load the video seamlessly on iOS, however on Android, it loads them randomly, and 90% of the time none of the videos are loaded. They are the same video files on both systems, so they are not broken links.

Has anyone ever had problems loading videos to android and was able to resolve them?

Code fragment:

replay = async (PlaybackStatus) => {
    if (PlaybackStatus.didJustFinish) {
      await this.videoPlayer.setPositionAsync(0)
      this.setState({ shouldPlay: false })
    }
  }

[…]

<Video
                  ref={(o) => (this.videoPlayer = o)}
                  source={{ uri }}
                  rate={1.0}
                  volume={1.0}
                  muted={false}
                  resizeMode="cover"
                  style={videoStyle}
                  shouldPlay={this.state.shouldPlay}
                  useNativeControls={Platform.OS === 'ios'}
                  onPlaybackStatusUpdate={(PlaybackStatus) => this.replay(PlaybackStatus)}
                />

P.S. I’m using native controls only on iOS because of the bizarre behavior of Android (it’s still frozen at the same point during scrolling).

Related Packages: “expo”: “^22.0.0”, “react-native”: “https://github.com/expo/react-native/archive/sdk-22.0.1.tar.gz”, “react”: “16.0.0-beta.5”, “axios”: “^0.16.2”, “react-redux”: “^5.0.6”, “redux”: “^3.7.2”, “redux-axios-middleware”: “^4.0.0”,

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tslatercommented, Jul 22, 2018

I’m having some serious troubles with videos that work great in iOS and the native android video player. They either don’t show up, or skip many frames, sometimes appear to only show only 2-3 frames while the audio for the who video plays. The issue occurs on both the android simulator and my device. Any tips on how to diagnose?

0reactions
thekrol01commented, Feb 8, 2019

Same issue with Videos in a Flatlist on Android. SDK32. https://github.com/expo/expo/issues/3443

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Videos Not Playing on Android Phone with 9 Proven Ways
Part 3: How to Fix Offline Videos Not Playing on Android (for Downloaded Youtube Videos) · Fix 1: Try Downloading the Video Again...
Read more >
How to Fix Videos Not Playing on Android Phone
How to Fix Videos Not Playing On Android phone · Restart/Reboot your device · Clear cache on your Android phone · Uninstall insecure...
Read more >
Fix videos & games that won't play - Android - Google Chrome ...
Fix videos & games that won't play · Step 1: Update Chrome · Step 2: Turn on JavaScript · Step 3: Reset your...
Read more >
Video Not Playing on Android Phone? Try These Ways to Fix!
01 Redownload the Video ; 02 Restart Your Device ; 03 Update Your Android's Firmware ; 04 Uninstall Dubious Software ; 01 Check...
Read more >
The Effective Solutions to Fix Videos Not Playing on Android
How to Fix Can't Play This Video on Android Phone · 1. Re-download the Video · 2. Restart Your Phone/Tablet · 3. Update...
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