add ard
This commit is contained in:
commit
ca2037194f
15
das_erste.py
Executable file
15
das_erste.py
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import pychromecast
|
||||||
|
|
||||||
|
|
||||||
|
CC_IP = '192.168.178.22'
|
||||||
|
|
||||||
|
cast = pychromecast.Chromecast(CC_IP)
|
||||||
|
cast.wait()
|
||||||
|
|
||||||
|
|
||||||
|
mc = cast.media_controller
|
||||||
|
|
||||||
|
# see https://github.com/mediathekview/zapp/blob/0df9ea4eccc3ddc9ca9d344f7d5c1916e19696e0/app/src/main/res/raw/channels.json
|
||||||
|
mc.play_media('https://mcdn.daserste.de/daserste/de/master.m3u8', 'application/vnd.apple.mpegurl')
|
Loading…
Reference in a new issue