Download dash and hls in react native - react-native

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 ?

Related

React native m3u radio player

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.

How to play m3u8 playlist from a folder in the react native

I want to play m3u8 playlist from a folder. So i want that i will download a folder in the react native app. As the Folder will be downloaded then i can call .m3u8 file from that folder and it will play my video. So anybody can help me with a player that can do it.
I tried with
react-native-video
react-native-jw-media-player
But these 2 are not worked for me. So please let me know if anything helps in in this.

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?

React Native Expo - Play audio directly from websocket

I'm using react native expo and have a websocket server from which I get live audio Data in mulaw format. I'm trying to convert these data into a wav file and then play it through Expo Audio.
I use the WaveFile Package to convert the File and would like to store it in Cache so Expo Audio can play it. (Audio can't be played from Buffer directly, right?)
Problem: Expo FileSystem only allow me to write String Files and I can't create a wav file out of the given buffer from WaveFile Package. Any Ideas what I could do here?
var fileUri = `${FileSystem.documentDirectory}/test.wav`;
await FileSystem.writeAsStringAsync(fileUri, "UklGRsBCDQBXQVZFZm10IBAAAAABAAEAQB8AAIA+AAACABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNTguNDUuMTAwAGRhdGF6Qg0AAAAAAP//AAAAAAEAAgACAAIAAgAEAAMAAwAFAAYAB",

Force encoding method in expo camera

I am using react native and expo camera to build an app that can upload videos to my website. Everything works fine on Android but on newer iPhones it uploads a blank video that still has audio. I think this is because of the new iOS encoding method HEVC rather than the typical H264. Is there any way to force expo camera to encode in H264?