Open chenqinggang001 opened 2 months ago
mdnsClient->StartBrowseService("_wsraop._tcp", [](const std::string& jsonTxtRecord) { std::cout << "Discovered JSON TXT Record: " << jsonTxtRecord << std::endl; });
this method is used to search service,it's just a test in HHMDNSDriver.cpp
DNSServiceStart should be called before HHAirPlayStart
I add sleep(2) to make sure the mDNS Server starting success and test this example on my android phone,the airplay device can be found in the iphone's mirroring list
I found that the registered service is :
I tried it
HHAirPlayStart("HelloAirplay202405112121");
But it still didn't work