• 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: Save the HTTP Streaming Audio in iOS Device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Save the HTTP Streaming Audio in iOS Device


  • Subject: Re: Save the HTTP Streaming Audio in iOS Device
  • From: Travis Blankenship <email@hidden>
  • Date: Wed, 07 Aug 2013 23:06:23 -0500

Sasikumar,

You're in luck. There appears to be support for HTTP live streams in the AVFoundation framework.

See page 20 (and 24) of the AVFoundation Programming Guide:
http://developer.apple.com/library/ios/DOCUMENTATION/AudioVideo/Conceptual/AVFoundationPG/AVFoundationPG.pdf#page=20

It looks like you would create an AVURLAsset, and then use AVAssetExportSession to write to disk.

AVURLAsset Class Reference:
http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVURLAsset_Class/Reference/Reference.html

AVAssetExportSession Class Reference:
http://developer.apple.com/library/ios/#DOCUMENTATION/AVFoundation/Reference/AVAssetExportSession_Class/Reference/Reference.html#//apple_ref/occ/cl/AVAssetExportSession

I hope that helps!

- Travis Blankenship
[ DJ | Producer | Graphic Designer | Programmer ]
http://tblank.com

On Aug 7, 2013, at 9:45 PM, Sasikumar JP <email@hidden> wrote:

Travis,
    I am already using audio stream API with audio unit for non http live streaming audio. I am able to save the audio data in disk.

I want to add the same support to http live audio stream. Do I have any option from av foundation framework to add this support.

If there is no support from av foundation framework,I will have add http live streaming support to my custom audio engine.
Not sure how complex to extend my audio engine to support http live streaming.

Regards
Sasikumar

Sent from my iPad

On 08-Aug-2013, at 7:18, Travis Blankenship <email@hidden> wrote:

Sasikumar,

AVFoundation is too high-level of a framework to provide access to individual audio packets. Have you tried using Audio File Stream Services (part of the AudioToolbox framework)? It seems to provide the exact functionality you're looking for.

Audio File Stream Services Reference:
https://developer.apple.com/library/mac/#documentation/MusicAudio/Reference/AudioStreamReference/Reference/reference.html

- Travis Blankenship
[ DJ | Producer | Graphic Designer | Programmer ]
http://tblank.com

On Aug 7, 2013, at 7:33 PM, Sasikumar JP <email@hidden> wrote:

Hi,
    I have a streaming audio iOS application, I am planning to add recording feature of the streaming audio.

I have a custom audio engine for non-HTTP live streaming source, i am able to save the streaming audio content using Audio File Services API.

As my custom audio engine does not support HTTP Live streaming audio source,i am using AVPlayer to play the audio. 

i don't know how to access the raw audio packets from AV Foundation Framework API. I tried with AVAssetReader, But it does not work with Remote URL.

Could any one guide me, How to get the raw audio packets from AV Foundation framework API OR Any other way to save the HTTP streaming audio content in iOS device.

Thanks in advance.

Sasikumar JP
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
  • Follow-Ups:
    • Re: Save the HTTP Streaming Audio in iOS Device
      • From: Sasikumar JP <email@hidden>
References: 
 >Save the HTTP Streaming Audio in iOS Device (From: Sasikumar JP <email@hidden>)
 >Re: Save the HTTP Streaming Audio in iOS Device (From: Travis Blankenship <email@hidden>)
 >Re: Save the HTTP Streaming Audio in iOS Device (From: Sasikumar JP <email@hidden>)

  • Prev by Date: Re: Save the HTTP Streaming Audio in iOS Device
  • Next by Date: How to process a buffer of 64-bit audio using an unconnected Audio Unit
  • Previous by thread: Re: Save the HTTP Streaming Audio in iOS Device
  • Next by thread: Re: Save the HTTP Streaming Audio in iOS Device
  • Index(es):
    • Date
    • Thread