Skip to main content

YouTube chromecast api

Project description

CastTube

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

Install:

pip install casttube

Features

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

# YouTube video id is http://youtube.com/watch?v=video_id
session.play_video(video_id)

The library requires 2 things:

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

There is a small script in https://github.com/ur1katz/CastTube-Scripts 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.

Source Distribution

casttube-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

casttube-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file casttube-0.1.0.tar.gz.

File metadata

  • Download URL: casttube-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for casttube-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d3787a38eb3a2bb2c1dc82e9e26387ff056de214b26817cf0bbed2f2a83a5d5c
MD5 da6bc1693f9b343237e75760537b4c3c
BLAKE2b-256 a15700f76daff3a80f3e84ec25ac25e982f1aca77df16174b900a1c2ec1d9af1

See more details on using hashes here.

File details

Details for the file casttube-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for casttube-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03c822c13d3fe6bcd66157190fcad70743a3b64d55d13fd3853073e3c032971f
MD5 8deb9574a474250c60b928404190acc1
BLAKE2b-256 f4d1a7d8cd7a7df6c2cd1cbc7ad8979010ae34ecf1f7da90ffe89bcc3af48326

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page