Comments (6)
Didn't know about the eureka_info way to get the device's info. Seems to be a better fit for this use case, since it's JSON and not (annoying) XML and we can also specify which params we would like to have returned.
Updated the code to use eureka_info instead of device_info.
from dart_chromecast.
In order to get information about your device, the library makes an HTTP GET request to http://${host}:8008/ssdp/device-desc.xml
. The result you're getting is an invalid response.
I recommend printing info.address
and then making the GET request in your browser, substituting the printed address into the above URL. If you still can't determine the cause of the issue, I recommend you post the response here.
from dart_chromecast.
From the browser, I can easily get info from /setup/eureka_info but never from /ssdp/device-desc.xml
from dart_chromecast.
Okay I've done some digging and found some unofficial documentation (https://rithvikvibhu.github.io/GHLocalApi/#device-info-eureka-info-get) - it looks like the library can be adapted to use /setup/eureka_info
(which works on my Android TV device too - out of interest are you using an Android TV or Chromecast?)
For reference, the URL I've crafted that can act as a substitute is: http://${host}:8008/setup/eureka_info?params=name,version,detail.icon_list,device_info.manufacturer,device_info.model_name
I'll try and sort out a PR to the repo. Not sure how active the maintainer is.
from dart_chromecast.
For model name and friendly name, there is no need for eureka_info since we already have the attributes bundle to decode? You can look at how I did it in:
cast_device
from dart_chromecast.
Also, just a heads up, I've noticed that POST requests to Eureka device dont' seem to work with HTTP library, I had to use DIO to get those to work (for GET it doesn't matter). Took me far too much time to find out :)
from dart_chromecast.
Related Issues (20)
- Is it possible to change playback speed while casting? HOT 5
- "reusePort not supported" error when running example, or similar find_chromecasts() call, on Windows/Android HOT 3
- iOS 14 issue HOT 4
- Set Volume not working HOT 1
- [Solution] volume control not working
- [Solution] metadata not working (title, image, subtitle..)
- Not compatible with http: ^0.13.0 HOT 1
- Null safety HOT 2
- Fix pub analysis error HOT 2
- Mirror app screen HOT 1
- How to play DRM content with license
- Lets improve the package score HOT 3
- Adding support for sound null safety HOT 5
- how send request headers HOT 3
- Cant find any device in network HOT 1
- Web support
- Can i add playlist into chromecast queue? and play all day chromecast video with repeat mode like youtube playlist with chromecast.
- Update dependencies
- Opening web page or youtube video HOT 4
- `reusePort` not supported for Android.
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 dart_chromecast.