mikebrady / shairport-sync

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

[Problem]: Shairport Sync and HostAPd Configuration #1767

Closed chengpings closed 6 months ago

chengpings commented 9 months ago

What happened?

I was able to run shairport-sync on ubuntu and be able to hear music. Even using hostapd to create a password-free hotspot, I couldn't set up the new playback speaker in my IPHONE's WLAN Settings. Can you give me some advice? Thank you。

Relevant log output

No response

System Information.

Allwinner H6

Configuration Information.

./configure --sysconfdir=/etc --with-alsa \
--with-soxr --with-avahi --with-ssl=openssl --with-systemd --with-airplay-2

PulseAudio or PipeWire installed?

How did you install Shairport Sync?

Built from source

Check previous issues

mikebrady commented 9 months ago

Thanks for the post. Is there anything useful in the CAR INSTALL guide? This details setting up an access point based onhostapd on Raspberry Pi OS.

chengpings commented 9 months ago

Thank you for your reply. I have been delayed by something at home recently. The car install guide doesn't help me much. I found that some airplay devices can find the device through the wlan interface of the iphone, as shown in the figure wlan.jpg, and then configure wifi through airplay setup, probably sending the wifi account and password to the airplay device through mdns service. After getting the account password, the device will automatically connect, as shown in the figure airspeaker.jpg. It would be great if Shairport Sync also had this feature, so you can connect to any network at any time! wlan airspeaker

mikebrady commented 9 months ago

Thanks. I think those AirPlay devices are using a special protocol with Bluetooth to "see" and communicate with devices that are not connected to WiFi. AFAIK, that protocol has not been documented. Shairport Sync doesn't support it.

chengpings commented 9 months ago

As you can imagine, I tested both mac and iphone with Bluetooth turned off. The wlan interface can still be configured for airplay devices.

mikebrady commented 9 months ago

Thanks for the update and for the information. The mystery of how those devices deepens! Maybe someone else has a better grasp of the mechanism.

github-actions[bot] commented 6 months ago

This issue has been inactive for 28 days so will be closed 7 days from now. To prevent this, please remove the "stale" label or post a comment.