Questions tagged [react-native-video]

React Native video component

React Native video component - https://github.com/react-native-community/react-native-video

338 questions
33
votes
3 answers

Exoplayer infinite buffer state

I'm trying to use the exoplayer for my React Native app using the React Native video package. I have an app with both a HLS stream and a mp4 videos, these videos and are stored on my server (https). When browsing through videos the player gets stuck…
Nieck
  • 1,626
  • 3
  • 21
  • 41
19
votes
3 answers

npx pod-install returns "CocoaPods is not supported in this project"

Context: I'm trying to create a React Native App with react-native-video. The iOs installation instruction starts with npx pod-install. Running: npx pod-install Returns: npx: installed 1 in 1.113s Scanning for pods... CocoaPods is not supported in…
14
votes
6 answers

Play youtube video in react-native-video

How can i play youtube video on react-native-video, i don't want to play video in react-native-youtube or in webview,
Vijay Kahar
  • 1,082
  • 1
  • 7
  • 20
13
votes
3 answers

domain = AVFoundationErrorDomain , code = -11828

I am using the streaming url from CloudFront. Sample URL: https://d14nt81hc5bide.cloudfront.net/qyYj1PcUkYg2ALDfzAdhZAmb On Android , it is working fine but in iOS it says: domain = AVFoundationErrorDomain , code = -11828 From apple doc the error…
12
votes
1 answer

react-native-video takes too long to start playback

In upgrading my app to react-native 0.59, I also upgraded react-native-video to it's latest version 4.4.1. What is currently happening is when trying to play videos with this library, it takes a while for the video to be available for playback. The…
jrods
  • 131
  • 1
  • 3
12
votes
3 answers

Pause video in flatlist when out of view

I have a flatlist showing videos. I want that when a video goes out of the view it should be paused. I am maintaining the pause state in each of the Posts component. class Posts extends React.PureComponent { constructor() { super() this.state =…
Mayank Raj
  • 921
  • 2
  • 12
  • 23
9
votes
4 answers

Could not find com.yqritc:android-scalablevideoview:1.0.4 react-native-video in Android

I want to use react-native-video in my project. After installing this package I got this error every time (Only in android). I have added all the additional codes that are given in the documentation. My react-native version is: 0.66.3 And…
Jim Khan
  • 397
  • 3
  • 13
9
votes
4 answers

React-native-video not showing the video player

I am using react-native-video package to get video player in which i can play my youtube videos. I tried this but only a empty space was coming instead of a video player. import Video from 'react-native-video';
8
votes
5 answers

Keep background audio from other apps alive, react-native-video IOS

long time listener first time caller. I am so far unsuccessful in getting background music from something like Spotify to stay alive in my react-native app as soon as I navigate to a screen that is using react-native-video. On Android no changes…
7
votes
3 answers

react native videos in carousel

I have been trying to play single video from a slider containing of multiple videos and images.. What i used and tried is in below. 1. react-native-video, 2. react-native-snap-carousel How to pause and play the videos wrapped in horizontal…
7
votes
0 answers

Partial download of mp4 file with rn-fetch-blob, react-native-video throwing unrecognized error

I'm trying to implement local video caching into my video-streaming application. I'm using: react-native-video for video playback rn-fetch-blob for downloading files I've managed to start the download at the beginning, replace the original URL…
7
votes
1 answer

background audio for video react-native-video

I am unable to get react-native-video to play mp4 files in the background, It will play mp3s and audio files but it refuses to continue playing the video. I have set the background modes in xcode to on with the audio, airplay and picture in picture…
6
votes
1 answer

react-native-video : Video stops when navigating away to another screen using react navigation but not stoping on iOS

On android when I navigate to another screen (using stack navigator or bottom tab navigator ) the video (using react-native-video) is paused, or even unmounted because when i get back to the video it starts again from the beginning of the media…
qhoarau
  • 61
  • 1
6
votes
1 answer

React-native-video not change video when change source

I use react-native-video to render a video player for my app. I try to change the source of the video. This is my code run well.
6
votes
3 answers

react-native-video: Cannot read property 'Constants' of null

I am trying to include a YouTube video in my react native project. Since I already tried react-native-youtube and did not work at all I tried installing react-native-video. However, I am getting the following error: I tried: deleting my…
HristoTotov
  • 133
  • 1
  • 2
  • 5
1
2 3
22 23