Skip to main content

YouTube chromecast api

Project description


casttube provides a way to interact with the Youtube Chromecast api.


pip install casttube


  • Play video
  • Play a playlist
  • Add video to the end of the play queue
  • Play next
  • Remove video
  • Clear the entire queue
from casttube import YouTubeSession
session = YouTubeSession(screen_id)

# YouTube video id is

The library requires 2 things:

  1. screen id
  2. The Chromecast youtube app needs to be open

There is a small script in to print the screen id and launch the app.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for casttube, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size casttube-0.2.1-py3-none-any.whl (6.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size casttube-0.2.1.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page