Comments (4)
That's exactly how it is done in example.py 👍
from pychromecast.
Which is how I figured out how to get it to work. Doesn't make it right though.
Do you know why the sleep is required? Would be nice to at least document its requirement.
from pychromecast.
PyChromecast communicates with Chromecasts using a socket. When you initialize an object it will start the connection. It takes a bit of time for the Chromecast to report its initial status back to PyChromecast.
from pychromecast.
I think it would be better for the library to block until the connection is established and the status is available. You could make an optional non_blocking call too incase there are people that wan't to use it in that way.
from pychromecast.
Related Issues (20)
- UnboundLocalError: local variable 'host' referenced before assignment
- Getting error: module 'select' has no attribute 'poll' HOT 15
- 1st gen chromecasts not detected on network HOT 3
- GoogleAssistant
- chromecast.wait() never returns HOT 1
- ValueError: too many values to unpack (expected 5)
- Discovery doesn't work in an async context HOT 4
- Data difference when using GoogleTV Youtube vs Casting
- Custom http headers
- Idle chromecast custom screen example
- Command feedback
- Detect tv is on or off
- SiriusXM/Chromecast Casting Issue HOT 8
- Cannot initialize 'Chromecast' class HOT 2
- Not working with updated modules ('str' object has no attribute 'cast_type') HOT 1
- How to know if a specific connected TV is compatible ? HOT 1
- BBC Sounds conroller stopped working HOT 3
- Python 3.10 Depreciation Warning ssl.SSLContext()
- How to work with spotify HOT 5
- BBC iPlayer Live Stream - unable to get working
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 pychromecast.