Giter Site home page Giter Site logo

Comments (6)

jaapz avatar jaapz commented on August 15, 2024

Do you want to stream a video as in #6, or stream a screencast?

from pychromecast.

minektur avatar minektur commented on August 15, 2024

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.

piedar avatar piedar commented on August 15, 2024

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.

balloob avatar balloob commented on August 15, 2024

Oh that's cool ! Did you run into any bugs with PyChromecast while playing around with that ?

from pychromecast.

piedar avatar piedar commented on August 15, 2024

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.

piedar avatar piedar commented on August 15, 2024

@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)

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.