Skip to content

Library for Python 2 and 3 to communicate with the Google Chromecast.

License

Notifications You must be signed in to change notification settings

SPUGNZ/pychromecast

 
 

Repository files navigation

This is a fork of https://github.com/balloob/pychromecast. It is a POC of a working YouTube controller that uses the Youtube Queue. This is still work in progress and very buggy!

Basic use

import pychromecast
from pychromecast.controllers.youtube import YouTubeController
cast = pychromecast.get_chromecast('ChtromeCast_name')
yt = YouTubeController()
cast.register_handler(yt)
yt.play_video('video_id')

# After video loads

# Controll player
yt.pause()
yt.play()

# Manage the playlist
yt.add_to_queue('video_id')
yt.clear_playlist()

# Check media status
yt.status.player_is_playing
yt.status

About

Library for Python 2 and 3 to communicate with the Google Chromecast.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 92.6%
  • Protocol Buffer 7.4%