-1

I am trying to make an app which can record online streaming audio like Radio and if person want they can save that audio in Local Document Directory to listen in future.

Nimantha
  • 6,405
  • 6
  • 28
  • 69
Gurinder Batth
  • 655
  • 9
  • 18

1 Answers1

0

There is not an API in iOS to do this.

You can save an audio stream (provided it is a completed file), but live streams are not as easy because they technically have no end. So the issue is they download forever.

Livesteams also can't be 'recorded' while playing either, due to the design of the iOS audio API.

You could however develop a library which allows you to "tap into the data stream" which is being downloaded and save it on demand. This is not a trivial task, but it can be done.

Saving an audio file from the web - SO

Community
  • 1
  • 1
Joshua Briefman
  • 3,783
  • 2
  • 22
  • 33