Skip to content

Instantly share code, notes, and snippets.

@OrangeTux
Created November 5, 2016 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OrangeTux/3a3caa971f7d6789655d0691d33cbcd8 to your computer and use it in GitHub Desktop.
Save OrangeTux/3a3caa971f7d6789655d0691d33cbcd8 to your computer and use it in GitHub Desktop.
import pychromecast
casts = pychromecast.get_chromecasts_as_dict().keys()
# cast = pychromecast.get_chromecast(friendly_name="Stroopwafel Bij Je Bier")
mc = cast[0].media_controller
mc.play_media('http://l2cm9c1b98fe3f00581dd388000000.cf9b35b0fb7138c2.smoote2d.npostreaming.nl/d/live/npo/thematv/journaal24/journaal24.isml/journaal24.m3u8', 'application/x-mpegurl')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment