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
3 answers

video keeps playing when I navigate to another screen

when I upload a video from my gallery and then try to navigate to the next screen,the video keeps playing in the background. below is my code: import React, {PureComponent} from 'react'; import { StyleSheet, Text, TouchableOpacity, View, …
0
votes
2 answers

How to prevent map() from render whole array at once in react-native

Hi folks I'm using viewPager and inside viewpager I'm rendering the array of videos using map. But I wan to show 1 video at one time as I'm giving height and width 100%. But when I run the app the all videos start playing.Only one show on the screen…
0
votes
1 answer

Video not covering the whole screen

I want my video to cover the entire screen but it seems to cover only half of the screen as follows I have styled the video component as follows:
0
votes
0 answers

Background music should duck (pause) on playing video

Background Music from other apps should stops while playing video in react native app. Using "react-native-video": "git://github.com/olofd/react-native-video.git#react-native-photos-framework" I am stuck, please respond as soon as possible.
0
votes
0 answers

thumb image from video url -react-native-video

Current behavior Videos list need to show thumbnail or poster but using video url as thumb image not working. Reproduction steps giving video url for poster to load thumb image Expected behavior : for all list video need to have thumb image from…
Marvan N
  • 1
  • 2
0
votes
2 answers

Unable to play DRM Video with React Native Video DRM Fork in Android

I am trying to play any DRM stream using the React Native DRM Fork. Unfortunately when I using the following code snippet in Android, I get the following error: - code snippet: -
0
votes
2 answers

Retrieve fileSize and playableDuration of Video from React-native cameraRoll library

I am trying to print the Total Duration and the video size with each video using cameraRoll library for React native, but it is displaying null for all videos. Can this be fixed, so i can display each videos total duration and video size. Link for…
0
votes
0 answers

RefrenceError: Can't find variable in react native

I tried to access all the files in a custom folder I created on my RNCamera roll app to create a gallery with it. In my code I believe i specified the variable "videos", but still am getting a reference error: "can't find variable videos", what do i…
0
votes
0 answers

How to use 2 version of npm package in a React Native App?

In my React Native App, I'm using the React Native Track Player package with version: `"react-native-track-player": "1.1.4". This version has a bug on iOS which mentioned in this link: App freezes when buffering a new track I've upgraded to higher…
EmBeCoRau
  • 327
  • 1
  • 4
  • 14
0
votes
1 answer

In react-native-video, how do I reset the video player when the video has finished playing?

I have a react-native app with videos that I am displaying using react-native-video. Right now when the video has finished playing you have to manually drag the control for the position of the video back to zero and then press play to have the video…
Robban
  • 1,191
  • 2
  • 13
  • 25
0
votes
1 answer

How to fix element type is invalid expected a string or a class/function error in react native?

I'm creating a music app using react native and I install "react-native-slider" "react-native-video" packages. When I run the application it gives an error "element type is invalid expected a string or a class/function(for composite component) but…
Sidath
  • 379
  • 1
  • 9
  • 25
0
votes
0 answers

Pause video when new video plays react-native-video play

I have several Video players on a page.. would like to play only one video at a time so when one is playing, any other that was playing before stops... The Idea I had is to identify the ID of the video that has been tapped on then let this be the…
DanielSmurts
  • 593
  • 5
  • 13
0
votes
0 answers

Can't remove a growing margin at bottom of screen- video keeps getting pushed up (React native Tiktok video app)

I'm working on a tiktok-like video app, and when I scroll down, the video is supposed to adjust and fit the full screen perfectly, but the video isn't adjusting properly to fit the full screen, it has a growing margin at the bottom. For each video I…
0
votes
1 answer

Playing of a video blo

The next program in React-Native allows a video to play but blocks the clicking on the button. I believe this is because of the position:absolute value but is there a way to avoid this problem? import React, { Component } from 'react'; import Video…
Jose Cabrera Zuniga
  • 2,348
  • 3
  • 31
  • 56
0
votes
1 answer

How to play list of videos sequentially by default without clicking next button accessing from local files of the device using react native cli

const filePath = `${dirs.DownloadDir}/samplevideos/1.mp4`; const filePath1 = `${dirs.DownloadDir}/samplevideos/2.mp4`; const paths = [{path:filePath},{path:filePath1}] {paths&&paths.map((data,inx)=>{ return