mikebrady / shairport-sync

AirPlay and AirPlay 2 audio player
Other
7.15k stars 568 forks source link

Peer to peer airplay? #933

Closed chetanpm closed 4 years ago

chetanpm commented 4 years ago

Apple's own hardware like their TV, homepod does wireless streaming without the need for all the devices be on same wifi network. Infact, no wifi router required to stream directly to the speaker from iphone. I was wondering if that is something possible for a raspberry pi or similar wifi devices?

https://www.youtube.com/watch?v=kN76FyITNMw

mikebrady commented 4 years ago

Thanks for the interesting question. This would require some work on Apple's peer-to-peer discovery stuff, so it is well out of the current scope of this project. There appears to be some work on AirDrop which might be relevant, but I guess it would require a fair bit of investigation...

chetanpm commented 4 years ago

Discovering the audio device through bluetooth trigger and then handing out the connection to wifi direct. It looks like they don't have special hardware but everything is implemented in the software. Apple kind of lock features with security certificates. I don't know if anyone can do it at all but it just feels good to when devices communicate peer to peer instead of always needing a router in between.

mikebrady commented 4 years ago

I had a quick look at this and it’s a morass at the moment — it is very far from being a routine matter to add the networking infrastructure needed. Even then we don’t know what protocols are in play. For the present, therefore, I’d say it is far out of reach.

chetanpm commented 4 years ago

Well, It was worth a try :) It is probably for a reason that no one has tried doing it so far, knowing that apple released p2p airplay functionality in ios 8. If someone could think about a way to do it in the future, it would be interesting thats all.

mikebrady commented 4 years ago

Yeah, it's a nice idea alright. Let's keep an eye on developments... For the present, though, I'll close the issue.

chetanpm commented 4 years ago

I realized we can connect the pi to the iphone hotspot and in turn use the same iphone to stream the music back. There could be a little scope to streamline if someone decides to look into it.

mikebrady commented 4 years ago

Another modality is to make the Pi itself a WiFi access point that is not connected to the internet. The iPhone can then use its cellular connection to connect, as normal, to the Internet and can use the Pi's WiFi network to connect to the Shairport Sync player. That approach is documented in the CAR INSTALL.md document.

kylewill commented 3 years ago

Checking on this one, it looks like p2p airplay uses AWDL (airdrop too) and there's now OWL (https://github.com/seemoo-lab/owl). Would this potentially make p2p possible for ShairPlay?

mikebrady commented 3 years ago

Thanks for the heads up. I’ll check it out.

Raynoxis commented 1 year ago

Hello , do you have some News ? Thank you

teelekkung commented 1 year ago

any update?

dddanielliu commented 6 months ago

I’ve recently found out that Belkin SOUNDFORM CONNECT can do it, but how?