• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: QTMovie and audio stream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTMovie and audio stream


  • Subject: Re: QTMovie and audio stream
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 10 Sep 2009 11:37:31 -0700


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 (email@hidden)

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:
This email sent to email@hidden


References: 
 >QTMovie and audio stream (From: Massimiliano Gargani <email@hidden>)

  • Prev by Date: Re: NSArray EXEC_BAD_ACCESS when initalized with strings
  • Next by Date: Re: XC & IB 3.2 overlapping siblings
  • Previous by thread: QTMovie and audio stream
  • Next by thread: How can we draw a horizontal line with embossing effect?
  • Index(es):
    • Date
    • Thread