• 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: AudioFileOpenURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioFileOpenURL


  • Subject: Re: AudioFileOpenURL
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 1 Apr 2009 13:16:47 -0700


On Apr 1, 2009, at 10:52 AM, james mccartney wrote:

On Apr 1, 2009, at 10:25 AM, Ashley Allen wrote:

If I place the URL I am trying to access in my web browser

AudioFileOpenURL only opens a URL of a file on a local disk, not the web.

Look at the AudioFileStream API if you want to play audio from the web. Actually you'll need a series of building blocks:


NSURLConnection (or CFStream) ---> AudioFileStream ---> AudioQueue

A much simpler way is to use QTKit — you can open a QTMovie on an 'http:' URL with a couple of lines of code, and it will download and play the audio. The drawback is that all you can do is play; you don't get access to the samples.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >AudioFileOpenURL (From: Ashley Allen <email@hidden>)
 >Re: AudioFileOpenURL (From: james mccartney <email@hidden>)

  • Prev by Date: more AudioFile Questions
  • Next by Date: Re: more AudioFile Questions
  • Previous by thread: Re: AudioFileOpenURL
  • Next by thread: Can't get AudioUnit from AUGraphNodeInfo
  • Index(es):
    • Date
    • Thread