HuntCode / Android_AirPlay

底层代码基于RPiPlay,mDNS服务支持两种方式:1)安卓系统自带的,使用/dev/socket/mdnsd通信;2)Embedded版本
Other
0 stars 0 forks source link

Can compile through, but the mac and iPhone screen image can not find the android device #2

Open chenqinggang001 opened 2 months ago

chenqinggang001 commented 2 months ago

I found that the registered service is :

mdnsClient->StartBrowseService("_wsraop._tcp", [](const std::string& jsonTxtRecord) {
        std::cout << "Discovered JSON TXT Record: " << jsonTxtRecord << std::endl;
    });

I tried it HHAirPlayStart("HelloAirplay202405112121"); But it still didn't work

HuntCode commented 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

image 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