I have a m3u file here.
When I downloaded the file and opened it in iTunes the program successfully started playing the stream audio and showed me the artist name and the song title. Moreover iTunes sends notification that track is changed and shows artist name and song title!
I wonder how iTunes guess this? The file doesn't have list of artists, it only has the link to the streaming audio. When I go this address mentioned in the file I can see a web page with some info. Does iTunes parse this pages and look for artist name? Don't think so...
Can anyone explain to me how to get song info from m3u file that contains only a link to an audio stream like iTunes does? Sample code in Obj-C or Swift of how to do this programmatically will be highly appreciated!
It comes down in the audio stream itself (using the Icecast protocol), rather than from the m3u file. You can prove this by opening the m3u file, taking the HTTP url inside, and putting it into VLC and you'll see the track data is still there.
There's a bit more info on this question: How do I extract streamed "now playing" data embedded in an Icecast audio (radio) stream on Samsung Smart-TV
There's also some obj-c specific stuff on this question: Getting SHOUTcast metadata on the Mac
And an explanation of the protocol here: http://www.smackfu.com/stuff/programming/shoutcast.html
Also if you're curious as to how I figured out the stream was an Icecast one, I opened Wireshark and filtered it by "ip.src == 79.120.77.11" and then started the stream, and in one of the first few packets there was a bit of data starting "icy-notice" and a mention of Shoutcast. A couple of packets later there's also the title of the radio station.
Related
I'm not sure whether this question is eligible to ask in this forum. I just want to know how the video streaming applications like,
Hotstar
Youtube
Spuul
and all developed a downloading manager which handle a video downloading process smoothy. How can we develop the same in my application? What are all the things i need to check for developing this? How should i develop it properly?
Any suggestions?
There now exists a Chrome extension which unites segments from m3u8 list and combines them in a video which then is saved to your computer.
Here's the link HLS Video Saver.
Your best shot is HLS. Segment your video file on server side with lets say
apple segmenter. Then create m3u8 playlist with these files. Next open the playlist file with the media player of your choice.
I want to know details how Mobicent Media server plays audio using URL? In which method it's streaming using URL. For local storage I'm understanding but for remote storage(URL) I'm not getting how it's working. I didn't find anything in the user guide or in website. It will be very helpful if you please inform me details or suggest me any web link.
Thanks.
In order for the Media Server to play a file you need to send a Play signal, where you specify the URL of the file to be played. If the file is local then the URL format will be file://path_to_file/filename.wav; otherwise if the file is hosted remotely then the URL format will be http://something/filename.wav.
Upon receiving the Play request, the Media Server will ask the underlying AudioPlayer to process the URL, first guaranteeing that it is not malformed and that the file type is supported: .wav, .gsm, .tone, .mov, .mp4, .3gp. If all is fine, the player will open a stream to the file right away.
Finally, the AudioPlayer is activated so it can start processing the file and transmitting audio to the remote peer.
You can find a fully detailed discussion about this topic in the mobicents public forum as well (including links to github code):
https://groups.google.com/d/msg/mobicents-public/4zuUOM3zHsM/fQM6o80JEXwJ
Let me know if this helps.
Regards.
I have managed to read matroska container and able to extract video and audio streams from a mkv file in my metro app. Now, I don't know how to feed the streams for playing. I want to know the concept of throwing media data on display. I have another option to repack the video and audio(s) with subtitles into MP4 container which will be played by MediaElement by default but that will not look like having a matroska codec in my metro app.
So, basically my question is: How to use MediaElement or any display graph to read the video and audio pulled out from any video container.
Please guide me. Thanks.
In recent work, I am using Matt Gallagher's AudioStreamer ( downloaded from here ) codes to make a music player in my App.
I have an XML file in my remote server I have hosted. This XML file has song title and songs' URL. My App gets the songs' title and URL and using Matt's AudioStreamer, it plays those songs but the problem is the song does not play in full length. Between 30 second to 1 minute, it stops playing and displays "no audio data found" pop up message.
Has anyone used Matt's API for audio stream (I am using here .mp3 files)?
Can anyone help me to fix this issue ?
Thanks
It could be a corrupt MP3 file - can you provide a link to the MP3 for me to test? I've written a more advanced AudioPlayer inspired by Matt's AudioStreamer (hosted here: https://code.google.com/p/audjustable/). I'd be interested in testing it against your files.
Is there any solution of this below one?
I have the Video/audio URLs
My Requirement is:
Is it possible to get the video/audio from the server and at the same time I have to open the player to play it(Like showing the Live-video directly in browser Field).
Means
Getting streaming into a buffer in back-end and at the same time I want to show it in the player.
If above is possible
I want to save that particular video/audio streaming data in to one file.
This blackberry KB link explains about streaming video from server. It may help you.