pychromecast icon indicating copy to clipboard operation
pychromecast copied to clipboard

How to launch TuneIn's app on CC ?

Open manatlan opened this issue 5 years ago • 0 comments
trafficstars

I've made :

import pychromecast

APP_ID="12F05308" # tunein
NAMESPACE = "urn:x-cast:com.google.cast.media"
class CCPlay(pychromecast.controllers.BaseController):
    def __init__(self):
        super(CCPlay, self).__init__(NAMESPACE, APP_ID)
    def start(self):
        def launch_callback():
            self.send_message( dict(type="LOAD",media={"contentId":"http://www.radioparadise.com/musiclinks/rp_128.m3u","contentType":"music","title":"yo","artist":"yoa"}) )
        self.launch(callback_function=launch_callback)


cc=pychromecast.Chromecast('192.168.0.60')
mc = CCPlay()
cc.register_handler(mc)
cc.wait()
mc.start()

but it doesn't work .. it launch TuneIn in CC, but it can't connect to the streams ;-( any idea ?

manatlan avatar Dec 31 '19 14:12 manatlan