Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added minified version

  • Loading branch information...
commit 6b51b432291583698b8febf3bdaa9c88f45bd991 1 parent b4335e5
@MoritzT authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  hangoutonair.js.min
View
1  hangoutonair.js.min
@@ -0,0 +1 @@
+(function(){function a(a,c,d){var e="__YTLiveStreams_"+Math.floor(Math.random()*1000001);window[e]=d;c=c||{};c["callback"]=e;var f=b(a,c);var g=document.createElement("script");g.type="text/javascript";g.async=true;g.src=f;var h=document.getElementsByTagName("script")[0];h.parentNode.insertBefore(g,h)}function b(a,b){var c=[];for(var d in b){if(!b.hasOwnProperty(d)){continue}c.push(encodeURIComponent(d)+"="+encodeURIComponent(b[d]))}return a+"?"+c.join("&")}function c(b,c,d){var e="https://gdata.youtube.com/feeds/api/users/"+b+"/live/events";a(e,{alt:"json",v:"2"},function(a){if(a){var b=a.feed.entry[a.feed.entry.length-1].content.src.split("/");var e=b[b.length-1].split("?")[0];console.log(e);var f=document.createElement("iframe");f.src="http://www.youtube.com/embed/"+e;f.width=c||560;f.height=d||315;f.setAttribute("frameborder","0");f.setAttribute("allowfullscreen","true");var g=document.getElementById("LivePlayer");g.parentNode.insertBefore(f,g)}})}window["showLivePlayer"]=c})();
Please sign in to comment.
Something went wrong with that request. Please try again.