Playing music through someone else's phone

Hello all!


Before I started trying to make this iOS app, I was wondering if it is possible to give someone access to play their music off your phone through blue tooth? An example is if my phone was connected to a blue tooth speaker but I gave someone access to my output audio they could connect with my phone and select the next song from their phone.

iTunes allows you to share your library across devices....is that what you mean?


Or are you asking how to make your phone a BT client outright?

Bluetooth Classic would make what you describe easier, but it is unavailable to non-MFi members.


You would need to write two apps (or, one app with two modes). One version of the app would act as a BLE peripheral, serving up a list of songs over BLE and listening for song requests. The other version of the app would act as a BLE central, it would connect to the peripheral, retrieve a list of songs, and pass selected songs to the peripheral app.


Keep in mind that BLE is a low-bandwidth protocol, the number of songs to select from will have a big impact on UX.


Using the Multipeer Connectivity Framework would most likely yield better performance by leveraging WiFi, Bluetooth, and abstracting a lot of the communication handling.

Playing music through someone else's phone
 
 
Q