Questions tagged [react-native-video]

React Native video component

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

338 questions
0
votes
1 answer

How can I render 1 index at a time in flatlist - react native

I am trying to render list of videos but each video item acts as a page since I use pagingenabled in flatlist. Problem is I use windowSize = {2} and that causes 2 videos (one visible & another not visible) to render at the same. My state is paused…
0
votes
1 answer

React Native Video not showing up using Video component with working url mp4

Can someone please tell me why this isn't working? This is killing me right now... import Video from 'react-native-video';
0
votes
1 answer

How can I show multiple videos with React Native Video in React Native?

How can I show multiple videos with the React Native Video component of React Native? Here is the React Native Video GitHub repository.
Dishant Chanchad
  • 710
  • 3
  • 9
  • 27
0
votes
0 answers

Cannot open file, after share, React-native

I have created a share function using react-native-share which fetches the api, in order to share some images, however when I try to share via whatsapp, it throws me an error: Cannot open file. My share function: shareImage= (item) => { …
0
votes
0 answers

On adding viewpager videos are not getting displayed

I have used a flatlist to list 4 videos getting fetched from an API, however I want them to scroll one at a time, hence added viewpager to render each video as a separate page, however on adding viewpager I do not seem to retrieve the videos on…
0
votes
2 answers

React Native Video not loading local file

I am adding video recording and preview feature to my react native app.For taking video i used the following code and once recorded i am able to get the output file.Now using the file uri i tried to preview this file to the users using…
anbu selvan
  • 725
  • 3
  • 13
  • 41
0
votes
1 answer

React-Native-Video how to pause the video when video not in full screen or off the screen

i am making a Android video gallery app like YouTube using React-Native for that i am using 'react-native-video' , package While using it i had a problem with video auto-play option all videos are playing at a time in the background without viewing…
0
votes
0 answers

How to pause a video in accordion in react-native?

I am using react-native-video library in my project. So when the accordion closes the video should pause. I tried the inbuilt function of library as well as external function but the problem persists. Any idea how to resolve it.
user11426267
  • 361
  • 4
  • 7
  • 13
0
votes
2 answers

Why does the larger video stream way faster than the smaller video?

I have 2 sample videos (v1 50MB and v2 150MB). They are the same video where v1 is downscaled from v2. v1 resides in our firebase bucket while v2 is a sample video available online. However, if I try to stream v1 in react-native or even in the web…
EFreak
  • 3,119
  • 3
  • 27
  • 31
0
votes
2 answers

How to solve the problem that the video is covered by the navigation bar after full screen

like this as follow,When I want to play in full screen, the video is overlaid behind
0
votes
1 answer

React Native Video not showing the player

I'm having a problem with the video player when using the property paused and when putting the inside another View. When I try to put the video between two Views (to test the scroll) the first view is hidden by the player, but the second one stays…
0
votes
1 answer

Black screen when playing video on Android 4.4 (API 19) kitkat

Im using react-native-video with react-native. I need to install and run this on an older Android version Android 4.4 (API 19) kitkat. But Im only getting a black screen when playing video on Android 4.4 (API 19). Not sure what is happening. Works…
0
votes
1 answer

How to seek within a loop in React Native

I am getting started with react-native development. I am using react-native-video to add a video in my application. I wanted to seek back and forth in a video in a for-loop and hold it for a given timeout using React-Native. I am using…
Sanke
  • 676
  • 2
  • 13
  • 30
0
votes
1 answer

Change videosource in React Native

Im using react-native-video in my react-native application. I want to be able to dynamically change videosource but found out it wasnt that easy. My approach is simply by changing the clip name with a hook, changing video1 to video2. But I was not…
acroscene
  • 845
  • 4
  • 16
  • 45
0
votes
1 answer

How to display video with "content://" tag on react-native-video component?

I want to show video from device video gallery. I get response from react-native-image-picker that include path and content. When I use the content for display video with react-native-video component shows nothing. I tried these…