Questions tagged [react-native-video]

React Native video component

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

338 questions
4
votes
1 answer

I can not play video with m3u8 format

I am building a project in React Native and I used the react-native-video dependency to play video streaming, but it does not play anything when the file is m3u8. Will it be the file codec? Video playback is successful in other formats, but entering…
Kryphon
  • 115
  • 4
  • 14
4
votes
0 answers

React-Native-Video handle URL changes

In my application, I want to change the url of the react-native-player source when clicking on the next button. My code is as follows. // PLAYER render() { let { paused } = this.state; let { volume } = this.props; return ( …
Shashika Virajh
  • 8,497
  • 17
  • 59
  • 103
3
votes
0 answers

In screen lock background play music and controls

I am using React native video npm - In screnio In play audio in after screen lock . Im using this type of code
3
votes
3 answers

React Native Video - undefined is not an object (evaluating '_reactNative.Image.propTypes.resizeMode'

I'm using react-native-video in react-native v0.69 withing nx monorepo and when trying to add Video component like below, I get an error TypeError: undefined is not an object (evaluating '_reactNative.Image.propTypes.resizeMode'. import Video from…
Jakub Jarząbek
  • 195
  • 1
  • 6
3
votes
1 answer

Play .m3u8 video in the react native video

I am playing HLS streaming in the react native using react-native-video and it is working fine. And I want to know that can I play .m3u8 video from Local storage of mobile. Like I have downloaded m3u8 stream in the mobile storage and then I want to…
Rover
  • 661
  • 2
  • 18
  • 39
3
votes
0 answers

Does AVPlayer support live footage served directly from a fragmented MP4 file?

Overview I have a server generating a livestream of video that is exposed as a fragmented MP4 file. That file is being served to an iOS emulator trying to play the video using react-native-video, which, I believe uses AVPlayer. The first request the…
Max Hay
  • 230
  • 2
  • 11
3
votes
0 answers

Ignoring setPlaybackState because application does not contain entitlement com.apple.mediaremote.set-playback-state for platform

I am currently working on a music app in react-native and I am using react-native video to render my audio. Here's the issue that I am facing: I pause the audio from the app then I receive a call, then the music resumes automatically even when the…
sakshya73
  • 5,570
  • 5
  • 22
  • 41
3
votes
0 answers

Best way to serve videos for (React Native) mobile app: why is HLS so slow over LTE?

I would like to serve video files in my mobile app (React Native using the react-native-video player). The two things I care about are: Adaptive bitrate so people with slower bandwidth (e.g., LTE) can still watch the video with minimal…
3
votes
0 answers

Add css to child video in react-native-video or expo-av

Using expo-av to create a video, I am trying to target the created video with css. I want to make the video height:100% of the container. But I don't know how to access the actual video, only the container. How can I target the child video of the…
3
votes
1 answer

Why is my onLoad event for a RN video component not firing?

I'm trying to display an Alert message when the video is done loading, but this event doesn't seem to be firing; I've seen that other people have had similar issues, but I haven't been able to find a solution yet.
gerbileee
  • 125
  • 6
3
votes
3 answers

React Native - Pause Video on Navigation

In my react-native project, I'm using react-navigation 5 for navigation and react-native-video for a audio/video player. My requirement is that when a user navigates to another scren, if the audio/video should stop playing. However, that's not…
asanas
  • 3,782
  • 11
  • 43
  • 72
3
votes
0 answers

react-native-music-control closes itself

I'm building an app that streams two-player at the same time. My sources are react-native-video and react-native-youtube-iframe. I implement react-native-music-control to react-native-video and it works perfectly until youtube-iframe starts. When…
mtalha
  • 396
  • 1
  • 3
  • 11
3
votes
0 answers

Can't play videos taken directly from iphone or android cameraroll on react-native-video? I get ' nil string parameter ' error on iOS

I don't seem to be able to play videos taken directly from iPhone or android cameraroll especially iPhone using the uri provided by the node. I can tell that the uris are all right because I can use them as images and see them on the cameraroll and…
Mohamed Omar
  • 419
  • 4
  • 9
3
votes
0 answers

react-native-video player goes in buffer mode and taking long time to laod video. I am using snap carousel library

I am using react-native-video with react-native-snap-carousel because I want to show full screen video with vertical scroll like tik-tok. Sometimes videos goes in buffer mode and taking very long time to load video and sometimes it is not loading…
3
votes
1 answer

I am getting this error after I included {Video} from 'react-native-video'. Otherwise my code was working fine

**This is the error code I am getting and below is my complete code. I installed react-native-video with yarn and then also linked it with ios and android ** I am getting this error after I included {Video} from 'react-native-video'. Otherwise my…
Sumyia Yaseen
  • 73
  • 1
  • 11
1 2
3
22 23