Created
January 10, 2011 05:52
-
-
Save norio-nomura/772430 to your computer and use it in GitHub Desktop.
simple bookmarklet which send Ustream to AirFlick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ | |
var w=window,enc=encodeURIComponent; | |
if (w.ustream && w.ustream.vars.liveHttpUrl) { | |
var u='airflick://play-media?MediaLocation='+enc(w.ustream.vars.liveHttpUrl), | |
a=function(){w.location=u;}; | |
if(/Firefox/.test(navigator.userAgent))setTimeout(a,0); | |
else a(); | |
} else { | |
alert('this ustream is not compatible with Apple TV!'); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Chrome or Safari 向けにブラウザエクステンションを作りました。
http://norio-nomura.github.com/SendUstreamToAirFlick/