-
Notifications
You must be signed in to change notification settings - Fork 20
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
browser.js blows up inside _normalizeService when service has no fullname or txt #35
Comments
I assume your referencing the https://github.com/GPMDP/node-mdns-easy/blob/master/src/browser.js#L67 |
Would you just expect the (A blank |
/cc @jostrander I think you did this normalizing stuff, thoughts on how to handle? |
That's right, browser.js = node_modules/node-mdns-easy/dist/browser.js Would a sensible default be host + first service type or something? Not sure how fullname is used in your package, I just started kicking the tires tonight. |
@johnspurlock I think we can just default it to the scanning type. We don't actually use https://github.com/GPMDP/electron-chromecast/blob/master/src/cast/index.js#L28 I don't know why we are even processing the record you posted though? It's type is |
Yeah I just made it normalized for our application, if we're missing something that could be used elsewhere by all means we can add a sensible default in. |
Valid point though @MarshallOfSound that's not a valid |
I had other apps doing bonjour things at the time, I assume it was not explicitly requested by electron-chromecast, just observing another advertised service. Perhaps you can filter them out upstream somewhere? |
@johnspurlock That would seem quite strange if it wasn't explicitly requested for |
Ok thanks, I ended up using another library in the meantime - will look into a patch if I re-integrate this library. |
For chromecast integration? Can you link me through? 😄 |
Sure! Right now I'm just using castv2-client directly, which uses the same castv2 dependency, but no mdns abstraction or chrome api emulation. |
@johnspurlock So castv2-client eliminates the need for chromecast api emulation in electron entirely? What kind of success have you had with this? I'm having a similar problem, except my electron app throws an error when attempting to debug with a remote console. So for example, if I run my app with
This is inconvenient since |
@dskvr I just needed a cast client for my electron app (not direct chrome.cast emulation), so castv2-client instead of electron-chromecast was enough for me. |
e.g. a service like the one below passed to _normalizeService will fail in two ways: normalizing the name (no service.fullname), and normalizing the txtRecord (no service.txtRecord)
The text was updated successfully, but these errors were encountered: