Sent from my iPhone
> On 2014/12/09, at 1:38, Jens Alfke <j...@mooseyard.com> wrote:
> 
> m3u8 isn't a stream, it's simply a small playlist file that contains one or 
> more HTTP URLs, which resolve to audio files, usually MP3. In the case of 
> streaming, the HTTP audio resource uses the Shoutcast format, which is 
> basically just an audio stream that looks like an infinitely long MP3 file.
> 
> So all you need to do is read the URL from the .m3u8 file (which is pretty 
> trivial; IIRC it's just a text file containing a URL) and use something like 
> NSURLConnection to read data from it and write it to a file with a ".mp3" 
> extension. Since it's a stream you'll never hit EOF so you'll want to stop 
> the connection after a while.
> 
> If you need to write the audio into some other kind of movie file you should 
> be able to feed the data received from the URL into AVFoundation. You'll just 
> need to inform it that the data format is MP3.
It is not limited to MP3 
Http Live Streaming uses this playlist format. 
Literally just a list of URLs really. Where each one is a short clip of media 
content. 
The content on the other end is usually small files as parts of the whole. 
The u on the end means UTF8. 
The video format could vary.  
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to