Code Monkey home page Code Monkey logo

Comments (3)

azasypkin avatar azasypkin commented on July 20, 2024 1

Thanks to @CyrosX, we have a support for a device discovery via mDNS in the rust_caster example! Refer to #18 for more details.

from rust-cast.

azasypkin avatar azasypkin commented on July 20, 2024

Hey @andrewshadura,

Unless I’m mistaken, there currently isn’t any code to discover new Chromecast devices, and the only way to use them is to know the IP address beforehand having discovered it by some other means.

Yeah, you're correct.

Would you consider implementing that or including some examples of performing discovery by other means (I’ve no idea at the moment how to do zeroconf discovery in Rust)?

I'd definitely accept PR if someone comes up with the solution for that (either as a part of this crate or just as an example)!

When I was toying with this crate in the past, I either used avahi-browse directly, like in rust-caster example (it can filter proper service types that Chromecast exposes) or used multicast-dns crate (basically a rough subset of Avahi bindings I wrote long time ago).

If you or anyone else have a desire to improve this crate even further, I think the proper direction would be to migrate to Open Screen Protocol and Google's openscreen library (assuming their license is permissive enough) that would give us a cross-platform access for the device discovery, support for all existing and future Chromecast-like devices (including Chromecast), and so on.

from rust-cast.

JoelMon avatar JoelMon commented on July 20, 2024

In case it's helpful to someone, the Gnomecast application pychromecast library written in Python auto detects all casting abled devices in the network. Perhaps that functionality can be translated to rust-cast.

This is the function that returns all of the connected casting devices.

from rust-cast.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.