-
Notifications
You must be signed in to change notification settings - Fork 94
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
Detecting ChromeCast Connect and Disconnect Events #25
Comments
This is a reccurring issue documented here #22 and here (castnow repo). I've had no time to investigate but it seems that since the last update the Chromecast doesn't advertise consistently over the mDNS protocol. Usual Chromecast clients (Google Chrome, the Android Chromecast SDK) still use the old protocols for backward compatibility with some apps (SSDP for discovery and DIAL for launch / control) and the best guess currently is Chrome detects the dongles thanks to SSDP. chromecast-scanner used to implement both methods for discovery but I see @xat changed that just a few minutes ago ! @xat how is it going ? Any news on this front ? |
The SSDP module brought in too much node-gyp trouble, thats why I got rid of it. I've temporary worked around the MDNS problem so chromecast-scanner now finds chromecast in the network ( at least for me :-D ) |
Hi xat, probably not the right place, but I'm here now! The new version you pushed up (0.4.1) almost immediately returns device not found for me. I'm going to try and roll my own solution using SSDP, besides the node-gyp, was there anything else that was of concern? |
@rknell which node version are you using? node-gyp was the only problem with SSDP I know of. |
Hi, Just used the code you posted over here (below): And it worked immediately. Also tried rolling my own mDNS implementation and had no luck there either. var Client = require('node-ssdp').Client
var client = new Client();
client.on('response', function (headers, statusCode, rinfo) {
console.log('chromecast running on address', rinfo.address);
client._stop();
});
client.search('urn:dial-multiscreen-org:service:dial:1'); |
works fine for me with v0.10.35 (there is a known issue on v0.11.13 and bigger, see mafintosh/multicast-dns#2). What Chromecast firmware version are you on? |
Not sure if this is the right place to post this question, but I'm having issues detecting when ChromeCasts join and leave the network.
I originally thought this was a problem with the mdns lib and the way it polled, so I filed an issue. The author of node_mdns helped me out and it looks like the ChromeCast device is the culprit:
Not sure if this is related, but after I start and stop my app a few times, I'll have to turn my wifi off and then on again to pick up serviceUps.
Sample App:
Thanks for any help you can provide
The text was updated successfully, but these errors were encountered: