I am trying to make a radio streaming app using react native but it doesn't work.
I tried expo-av with Expo CLI, and react-native-radio-player, react-native-video from react native CLI
all of them work well with mp3 and mp4 extensions but don't work with m3u extension..
RadioPlayer.radioURL('https://radio.therockeg.com/clv_64.m3u');
I use https://icecast.org/ for the radio streaming, any help?
m3u is just a text format with a list of sources inside, you can read this data on your app side, extract sources and play it with any player you prefer.
Related
is there a way to download hls and dash videos in react native so that they can be played offline ? I am trying to use react-native-fetch-blob it successfully downloads mp4 files but unable to download dash and hls. Also is there a way to hide the video files or encrypt them so that only the player can read them ?
I am building and mobile app for android using react native, I have json array object and I want to download this data as CSV file on button clicked, I have checked many of existing packages but all for web applications not mobile applications. is there anyway or trick to do that or is there and new packages i am missing. help me please
It looks like react-native-fs (https://www.npmjs.com/package/react-native-fs) supports IOS and Android Devices. This allows you to create Files on the Device, and write any File content.
I'm pretty new to react native, and I've only build one or two really basic projects. I think creating an app to play mp3 (that are inside the actual project) would be fun. I've done this in swift with xcode using AVAudioPlayer, and I'm just wondering if it is the same library to do this in react native.
There are many libraries playing Audio but I recommend react-native-track-player provides audio playback, external media controls, background mode and more!
I'm implementing the feature of video recording in React Native, and want to have the features of convert the video that recorded to GIF before send to server. Is there any libraries or ways to convert the video such as mp4, mov to gif in React Native for both Android and iOS?
Instal library
npm install react-native-video-to-gif --save
Using lib
import RNGif from 'react-native-video-to-gif';
Try FFMPEG
FFMPEG is known for all kinds of video manipulations. Including converting video to gif. And the package below is React-Native compatible, available on both iOS and Android.
https://www.npmjs.com/package/react-native-ffmpeg
I am storing my videos in Firebase Storage. I want to give an option to play the videos i am retrieving from Firebase in a Third-Party player.
If you are using Expo, yes there is:
Expo is a free and open source toolchain built around React Native to help you build native iOS and Android projects using JavaScript and React - Expo Website
The Expo SDK, which include components and many more cool stuff, come built-in with create-react-native-app has the Video Component
It is a component that displays a video inline with the other React Native UI elements in your app. The display dimensions and position of the video on screen can be set using usual React Native styling.
You can use that to play the videos hosted on firebase