Comments (3)
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.
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.
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)
- [Receiver] Add ability to set receiver volume level and mute/unmute state
- Investigate possibility to use stable or at least beta Rust
- Add "categories" field to the Cargo.toml HOT 1
- Failing to deserialize status messages
- Derive Copy and Clone for StatusEntry HOT 2
- build is busted during openssl compile HOT 2
- use of Rc limiting design possibility HOT 1
- Consider removing the use of Cow HOT 1
- Is it possible to setup a continuous cast from a computer? HOT 4
- Note: this works just fine with the latest Chromecast (Chomecast with Google TV) HOT 3
- is it possible to use rustls instead of openssl ? HOT 6
- Stream a local .mp4 file? HOT 1
- Implement/clarify MEDIA_SRC_NOT_SUPPORTED HOT 6
- async support HOT 14
- Allow setting the `current_time` field within the load command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-cast.