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.
Related
I was trying to play a live stream with AVPlayer. And I somewhat succeeded. My question is, if I play an URL that ends with m3u8 I can, however, when I try a link that doesn't (see example below) I can't! Same behavior when I try to open them with Safari, but on VLC, they both work. Why is that? Unsupported codec?
Examples:
This works: https://fluxustv.blogspot.com#bit.ly/fluxusfish?.m3u8
This doesn't: http://www.tvworldfree.ga:3000/p002/p158156/2219
The link without “m3u8” is a raw transport stream. AVPlayer does not support that format without a manifest.
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 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.
I am trying to play a video file with the .mov extension. It is not playing the video in my MPMoviePlayerController. I need to play this type of file in my application. Is it possible to play a video file without using MPMoviePlayerController or UIWebView?
Please anyone suggest me in this issue.
Thanks in Advance
I've never used it directly before, but take a look at the AVPlayer Class Reference.
Under the "Overview", you'll see:
You use an AVPlayer object to implement controllers and user
interfaces for single- or multiple-item playback. The multiple-item
case supports advanced behaviors.
If you look at the AV Foundation Programming guide (linked here), you'll see Apple builds the Media Player upon AV foundation.
I am trying to get the MPMovieplayerController to play incomplete video files. I want to use this so a user can download a part of a movie and play it offline. I am using ASIHTTP so i can resume downloads, if i try to play the temporary the player does nothing and and i get no errors. Also i registered for the MPMoviePlayerContentPreloadDidFinishNotification notification but it does not get dispatched. When the file is done downloading i can play it correctly.
Is it possible to somehow play incomplete video files? Alternatives to MPMovieplayerController are also welcome if that offers a solution.
I needed to download the first part op the mp4 file and the last part before i was able to play the video. So i am now downloading the first mb of the file then the last mb then the middle part and now i can play the file while it is not complete.