Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AirPlay service registered by `DNSServiceRegister` cannot be discovered by iOS 11

Tags:

ios

ios11

airplay

Multicast is disabled in our ethernet, so I registered proxy services (_airplay._tcp & _raop._tcp) pointed to Apple TV's IP with DNSServiceRegister in my app, register and detect the service on the same phone. It works fine in iOS 10, but my service can't be detected in Control Center in iOS 11.

like image 748
Nix Wang Avatar asked Nov 08 '22 15:11

Nix Wang


1 Answers

When Apple changed around everything in iOS 11 (meaning AirPlay 2), they made it a tad more difficult for a device to Airplay to itself. You must use a much lower level API for this to work, by that I mean C instead of Objective-C.

like image 57
Colin Avatar answered Nov 15 '22 10:11

Colin