On Sep 10, 2009, at 1:54 AM, Massimiliano Gargani wrote:

I'm developing a little music player. It works fine with file but it doesn't work with audio streaming.
as you can see from log below it wants to open the stream as a file:

2009-09-10 10:47:04.221 Primafila[511:10b] the file path 
http://cast.voxcdn.net:8000/2917-MP3-RadioIO-Smooth-Jazz-128

There are a lot of APIs in the system that take a URL but only accept file: URLs. Basically it was decided that URLs are a good abstraction for passing filesystem paths. So if you see a URL as a parameter, don't immediately assume that it supports http: (or ftp: or ssh: or whatever) without reading the docs.

So I don't believe QTMovie directly supports loading movies over HTTP, much less Shoutcast-style MP3 streaming. IIRC you can open a movie view directly on a URL, and that supports fetching the contents over HTTP. I've used that to play remote .mp3 files, but I suspect it won't work for Shoutcast streams. For those you may need to roll your own implementation using CoreAudio APIs.

(Is there a QuickTime developer mailing list? If so, you should ask there, in case my QTKit knowledge is out of date.)

—Jens_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to