Questions tagged [react-native-video]

React Native video component

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

338 questions
2
votes
0 answers

react-native-video: how to send CloudFront signed cookies

I am facing issues while sending CloudFront signed cookies in react-native-video My video component look like this:
2
votes
1 answer

How to autoplay expo-av video on focus in flatlist

The app I'm making consist pictures and videos sharing, and my goal is to autoplay the video once it is focused, also pauses it after it is out of the view inside the FlatList. Here is a demo of what it looks like now: I have 2 questions with…
2
votes
2 answers

Videos play at the same time - React Native

I have two videos from https://www.npmjs.com/package/react-native-video I do not have the controls active, my intention is to activate and deactivate the videos by pressing buttons. I do it with states, my problem is that when I press a button to…
2
votes
1 answer

How to create fast video loading feature like instagram Reel with React Native?

How can I create a fast video consumption feature like Instagram Reels, I have created a simple video player with the help of react-native-video but after every video, it takes time to load that video. How can I do something like prefetch the video…
2
votes
0 answers

Video streaming in react-native using custom API

I'm working on a react-native app using expo-av to show videos, and whne I put in source the uri: 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4', from google samples, it acutally works, but if I try to put a…
PietroPutelli
  • 482
  • 4
  • 20
2
votes
0 answers

How to pass a ref to avoid reload (react-native-video)

I have a video that I'm using react native video for, and depending on whether or not the component is in full screen, it displays it in a modal. How do I pass the ref to avoid it 'reloading' the resource between state changes? Is there…
Joel Hager
  • 2,990
  • 3
  • 15
  • 44
2
votes
0 answers

Play youtube videos without logo

I need to play youtube videos in the react native app I am using this npm i react-native-youtube npm i react-native-video But these are not working fine for me. As i am playing videos i am getting youtube logo and options that indicates that this…
Rambler
  • 267
  • 1
  • 12
2
votes
0 answers

com.google.android.exoplayer2.ExoPlaybackException: java.lang.IllegalStateException is thrown when seeking on Android on ReactNative

Bug I'm using react-native-video package for adding video player to my app. This error keeps getting thrown by react-native-video on Android. This happens when I play a video and seek it or sometimes when the video loads. {"error":…
mzaink
  • 261
  • 4
  • 10
2
votes
1 answer

Preload first frame of video using react native video so user won't have to wait while playing

In my app i've list of videos like instagram and what i want to is to preload first frame of video so when user opens app they don't have to wait until it load. I am using react-native-video. I can not cached video because its utilising too much…
2
votes
0 answers

How to add Image and title to the Notification music control from react-native-video

I am using react-native-video, When I play video from any resource(url or local both) then in notification center music control show. But there is nothing information show in the notification. How can I add Image and title into the notification…
2
votes
0 answers

Download Private video from URL and play only from React Native App (Not From Android File Explorer / Gallery )

how can we encrypt video downloaded from url so that it wont be available from mobile file explorer like youtube save video feature i tried this article but it didn't tells how to encrypt video how-to-download-private-videos-in-react-native-app i am…
2
votes
0 answers

Checking for viewable items in a Flatlist and passing a prop if the item being rendered id matches a viewable items id

So basically what I said in the title, I am simply trying to change a prop that im passing to the component of Post if the item currently being rendered is in the viewport. I am getting double the output like its firing twice, and its not even…
2
votes
0 answers

How to get frames from video and show with trimmer in react native like whatsapp status uploading

I'm developing a video streaming app and I need to trim, merge audio & video stuff like that, But for Now, I've to get frames of video and show in the trimmer so that user can trim the video as per his need. How can I achieve this? If anybody done…
2
votes
0 answers

React Native Video: Play MPEG Dash videos

I am using react-native-video and need to play MPEG/Dash files. How can I pass the playlist file (.mpd) to the player?
Majed Badawi
  • 27,616
  • 4
  • 25
  • 48
2
votes
0 answers

In react-native-video selectedVideoTrack props is not working

I am using react-native-video for displaying hls video. Video link:- https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8 As the video is in hls, I need to change the quality of the videos either manually or auto But I can't achieve this using…
Ashad Nasim
  • 2,511
  • 21
  • 37