1

I am looking for an efficient way to stream music from iPhone to iPhone. These iPhones would be nearby each other so one of my options was to use their Bluetooth features.

This forum, http://ubuntuforums.org/archive/index.php/t-1464189.html, explained how to stream from iPhone to a Ubuntu computer but didn't explain how to capture.

My first thought was to capture the raw bytes being played from an iPhones speaker. I saw how to do it with a camera stream, here Uploading live streaming video from iPhone, but I don't believe it's the same methods for an avaudioplayer.

Can anyone extend over the information I've collected or suggest a different feasible option?

Community
  • 1
  • 1
keji
  • 5,947
  • 3
  • 31
  • 47

3 Answers3

3

This answer should be updated, because with IOS7 you can use MultiPeer Connectivity Framework to send data to nearby peers over bluetooth/direct wifi

And the MCSession protocol implements startStreamWithName:toPeer:error: to create a connected byte stream (NSOutputStream) that you can use to send data to the specified peer.

Alaa Awad
  • 3,612
  • 6
  • 25
  • 35
2

Game Kit provides easy peer-to-peer connectivity:

Peer-to-peer connectivity allows your game to create an ad hoc Bluetooth or wireless network between multiple iPhones in the same local area. Although designed with games in mind, this network is useful for any type of data exchange among users of your app. For example, an app could use peer-to-peer connectivity to share electronic business cards or other data. This functionality is only available on iOS. You can also get the same functionality using Game Center.

Marcus Adams
  • 53,009
  • 9
  • 91
  • 143
0

To capture and play the streamed audio you can use Audio File Stream Services

To stream the audio data to another Iphone, you want to take a look at the new Multipeer Connectivity framework in ios7. It allows you to stream data to nearby peers through a multipeer connectivity session.

serrrgi
  • 644
  • 3
  • 7