diff --git a/info_files b/info_files deleted file mode 120000 index d5782be16c..0000000000 --- a/info_files +++ /dev/null @@ -1 +0,0 @@ -../data/info/ \ No newline at end of file diff --git a/video_init.js b/video_init.js index 5ed773b98f..897f4cfd85 100644 --- a/video_init.js +++ b/video_init.js @@ -5,7 +5,7 @@ var atts = { id: "myytplayer" }; // If the user doesn't have flash, use the HTML5 Video instead. YouTube's // iFrame API which supports HTML5 is still developmental so it is not default if (swfobject.hasFlashPlayerVersion("10.1")){ - swfobject.embedSWF("http://www.youtube.com/apiplayer?enablejsapi=1&playerapiid=ytplayer?wmode=transparent", + swfobject.embedSWF(document.location.protocol + "//www.youtube.com/apiplayer?enablejsapi=1&playerapiid=ytplayer?wmode=transparent", "ytapiplayer", "640", "385", "8", null, null, params, atts); } else { @@ -14,7 +14,7 @@ if (swfobject.hasFlashPlayerVersion("10.1")){ $("#html5_player").show(); var tag = document.createElement('script'); - tag.src = "http://www.youtube.com/player_api"; + tag.src = document.location.protocol + "//www.youtube.com/player_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); // Make sure the callback is called once API ready, YT seems to be buggy