https://github.com/ur1katz/casttube
YouTube Chromecast API
https://github.com/ur1katz/casttube
chromecast youtube youtube-api
Last synced: about 1 month ago
JSON representation
YouTube Chromecast API
- Host: GitHub
- URL: https://github.com/ur1katz/casttube
- Owner: ur1katz
- License: mit
- Created: 2018-06-01T06:54:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-11T12:28:26.000Z (over 2 years ago)
- Last Synced: 2025-05-14T15:28:10.143Z (about 1 month ago)
- Topics: chromecast, youtube, youtube-api
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 57
- Watchers: 2
- Forks: 11
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CastTube
casttube provides a way to interact with the Youtube Chromecast api.
**Install:**
```
pip install casttube
```**Features**
* 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 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 openThere is a small script in https://github.com/ur1katz/CastTube-Scripts to print the screen id and launch the app.