从命令行向Chromecast播放视频。

aiocast的Python项目详细描述


aiocast

从终端向Chromecast设备播放视频。

安装

$ pip install aiocast

用法

  • $ aiocast play video.mp4
  • $ aiocast list-devices
  • $ aiocast device-info "Home"
$ aiocast play --help                                                                                                                                                                                                                ✔  19:31 
usage: aiocast play [-h] [-d DEVICE_NAME] [-p PORT] [-t TIMEOUT] [-i IDLE]
                    [--local-ip LOCAL_IP] [--mimetype MIMETYPE]
                    media

Cast a video

positional arguments:
  media                 Path to the video to cast.

optional arguments:
  -h, --help            show this help message and exit
  -d DEVICE_NAME, --device-name DEVICE_NAME
                        The target cast device name (default: None)
  -p PORT, --port PORT  Port of the local cast server (default: None)
  -t TIMEOUT, --timeout TIMEOUT
                        Timeout after which the program will close if stuck on
                        buffering. (default: 60)
  -i IDLE, --idle IDLE  Time to stay idle after a stop or media ends (default:
                        2.5)
  --local-ip LOCAL_IP   Local ip to use, otherwise get the first private ip
                        available. (default: None)
  --mimetype MIMETYPE   Set the mimetype of the media, otherwise will guess.
                        (default: None)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java Web服务是日期Java的更好选择。util。日期限制?   java Flink cassandraOutputFormat元组需要冻结值   java Split BigInteger,计算数字?   java通过servlet查询mysql中是否存在密钥   在安卓 studio中使用java从google驱动器链接显示pdf文件?   未触发java Spring Web流转换   java错误:二进制运算符“>=”的操作数类型不正确,否则如果(bmi<=18.5>=25.0)   java MySQL upsert(在重复键上)使用JDBC准备语句   如何在java8中执行多个链式操作?   java在Hibernate中获取实体但为空值的属性   java 安卓。小装置。RelativeLayout不能投射到安卓x。抽屉布局。小装置。抽屉布局   Java输入字母   Java中的继承父和子参数化构造函数   java当JtextField被填充时,必须填充JTable单元格。怎么做?   sql如何解决java中的写数据定义操作?   java模块X的多个工件被检索到ApacheIvy中的同一个文件中?   java预览在发布时不显示(Android Studio)