For example, if I want to stream a live video from Youtube as a stream in audio player, can I do it in Flutter? I can't seem to figure out how to get a direct link to the sound, so I don't know if it is possible. If not, do you guys have any alternatives?
At the moment I am using Audioplayers library, but if it can't support streaming, any suggestions how to do this?
Related
Twitch has this feature on their video player where you can create short clips of someone's stream. Does anyone know if there are any Live Streaming APIs that have this functionality? I want to build a twitch clone of some sort with the ability to clip mid-stream.
I am trying to implement video live streaming
live streaming and
upload it to server and
save the streaming video (Playback)
in react native can any one help me with a sample project
this is will be helpful https://www.npmjs.com/package/react-native-video
for point upload it to server, what exactly do u need upload? video uploading or something else?
So - you'll need a backend server that can accept a video stream, and convert it into a stream that can be consumed in React Native. You'd also like the server to save the streamed video, and encode it so it can be played back as video on demand (VOD) after the stream has stopped. None of this is React - it'll all be done on the backend.
You can build all this yourself, but there are a number of APIs that can do this for you. Disclaimer: I work for one such company: api.video. (A Google search will find others)
For livestreaming from the browser, you can use getUserMedia and stream to a server. (you can see my demo using JavaScript at livestream.a.video. This stream wil be visible to all your users, and then also recorded and saved as VOD for later playback.
To upload a recorded video - you can use file.slice() to break the video into manageable chunks, and upload to the server - for transcoding into a video stream (demo at upload.a.video, and tutorial.)
For playback, these APIs will give you a player URL or the m3u8 url that you can incorporate into a video player. This is your React Native part - and there are several video players that you can add into your application to playback HLS video. At api.video, we have our own player, and also support 3rd party players.
I have an m3u8 video that if I just start with the first segment it is behind the live version of the stream. But in some players it plays live just fine, so my thinking is that there must be some magical way of knowing how to play the stream live but I don't see anything on the manifest telling me this.
So what should I be looking for?
Thank you.
In Windows Phone 8.1, I want to play an internet radio station with Windows.Media.Playback.MediaPlayer. I'm aware of a sample which plays mp3 files with MediaPlayer.SetUriSource. However, I don't know how to play a stream. I see MediaPlayer.SetStreamSource, but it appears to be for random access streams which support seek, etc. I'm not sure it's for live streams.
Which method should I use?
Any tutorials or docs on this? I couldn't find any.
You could have a look at the Windows Phone Streaming Media library, which supports live streaming and HLS formats.
http://phonesm.codeplex.com/
I am making a Radio app for my website and I tried to use MPMoviePlayerController to access my streaming (.pls) file actually shoutcast but it doesn't work>
Any help or snippet to do that ?
Apple recommends you use HTTPLiveStreaming for audio/video streams. Do a little digging and I'm sure you could figure it out.
If it's a live stream, a playlist, or something like that, you can just use the API to create an m3u8 playlist that your MPMoviePlayerController can stream. Check out the docs and guides at the link below:
HTTP Live Streaming Resources - Apple Developer