casttube-0.2.1
توضیحات
YouTube chromecast api
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | casttube-0.2.1 |
| نام | casttube |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Uri Katz |
| ایمیل نویسنده | 4urikatz@gmail.com |
| آدرس صفحه اصلی | http://github.com/ur1katz/casttube |
| آدرس اینترنتی | https://pypi.org/project/casttube/ |
| مجوز | MIT |
# 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 open
There is a small script in https://github.com/ur1katz/CastTube-Scripts to print the screen id and launch the app.
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
نحوه نصب
نصب پکیج whl casttube-0.2.1:
pip install casttube-0.2.1.whl
نصب پکیج tar.gz casttube-0.2.1:
pip install casttube-0.2.1.tar.gz