Comments (6)
Do you want to stream a video as in #6, or stream a screencast?
from pychromecast.
I want to send a series of still images - "screen saver" - kind of like what appletv does with your iphoto library.
I'd also like to be able to send a video stream at the device just lke a browser does when casting a tab, but without the browser dependency.
I'd also like to just be able to launch the default media player giving it a URL (could be custom webserver running on local server etc)
from pychromecast.
I'm prototyping cast.py in my own branch. It can already handle a couple of your requirements.
# cast a local file
./cast.py media/movie.mp4
# cast multiple local files
./cast.py media/*.webm
# cast a remote file
./cast.py http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4
# cast a directory, pausing for 10 seconds between each file
./cast.py media/slideshow --recursive --wait 10
# cast an unsupported file, transcoding first
ffmpeg -i media/movie.avi /tmp/movie.mp4
./cast.py /tmp/movie.mp4
rm /tmp/movie.mp4
I'm also thinking about writing a Qt remote control application, but I don't know if I'll get that far.
from pychromecast.
Oh that's cool ! Did you run into any bugs with PyChromecast while playing around with that ?
from pychromecast.
I saw a few socket errors, but I think the Chromecast wasn't ready yet or I forgot to call cast.quit_app()
. If I see any errors that aren't my fault, I'll be sure to save the stack trace.
from pychromecast.
@balloob Is there a way to poll the youtube controller to see when it's done playing? I'd like to do something like
cast = pychromecast.get_chromecast()
controller = cast.media_controller
yt_controller = pychromecast.controllers.youtube.YouTubeController()
cast.register_handler(yt_controller)
# start casting using either controller or yt_controller
while not controller.is_idle or not yt_controller.is_idle:
pass
But yt_controller doesn't have an is_idle
property.
from pychromecast.
Related Issues (20)
- 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 5
- 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 9
- 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
- Join existing chromecast session without interrupting it?
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.