Implement <link rel="video_src"> tag

patches
Jerome Charaoui 2013-12-22 03:04:30 -05:00
parent 10a31bbd1e
commit 993b799f62
1 changed files with 2 additions and 0 deletions

View File

@ -194,6 +194,7 @@ $(document).ready(function() {
.attr("src", videoSrc)
.attr("alt", currentPhoto.name)
.on('loadstart', scaleVideo);
$("head").append("<link rel=\"video_src\" href=\"" + videoSrc + "\" />");
$("#video-box-inner").css('height', height + 'px').css('margin-top', - height / 2);
$("#photo-box").hide();
$("#video-box").show();
@ -305,6 +306,7 @@ $(document).ready(function() {
$(window).hashchange(function() {
$("#loading").show();
$("link[rel=image_src]").remove();
$("link[rel=video_src]").remove();
if (location.search.indexOf("?_escaped_fragment_=") === 0) {
location.hash = location.search.substring(20);
location.search = "";