Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chenqinggang001 opened this issue Aug 27, 2024 · 1 comment

Comments

@chenqinggang001
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants