Skip to content

Instantly share code, notes, and snippets.

View mmmunk's full-sized avatar

Thomas Munk mmmunk

View GitHub Profile
anonymous
anonymous / google_cast_sample.htm
Created March 12, 2016 16:06
Google Cast (Chromecast) JavaScript API custom URL sender sample
<!DOCTYPE html>
<html>
<head>
<script src='https://www.gstatic.com/cv/js/sender/v1/cast_sender.js'></script>
<script>
function onError() {
document.getElementById('message').innerHTML = 'Error';
}
window['__onGCastApiAvailable'] = function(loaded, errorInfo) {
import os.path
import sys
from gi.repository import Gtk, GdkPixbuf
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
path = sys.argv[1]