Skip to content

Fix compatibility with other Chromecast enabled devices#29

Merged
mafintosh merged 1 commit into
mafintosh:masterfrom
andyshinn:use_srv_record
Oct 17, 2017
Merged

Fix compatibility with other Chromecast enabled devices#29
mafintosh merged 1 commit into
mafintosh:masterfrom
andyshinn:use_srv_record

Conversation

@andyshinn

Copy link
Copy Markdown
Contributor

This should supersede #28. It changes two things:

  • Instead of trying to look up the A record (which has a different name than the PTR data), we just use the PTR data to lookup the same name of the SRV record which has the actual hostname we can connect to. This just uses the names as-is so any Google Cast device should be found.
  • I also added the dns-txt package to decode the associated TXT record to get the friendly name and use that if it exists.

Not sure if there is a better way to handle this. But open to suggestions. I was thinking the TXT record could be later expanded to gather all the fields in case they might be useful.

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

Successfully merging this pull request may close these issues.

2 participants