Commit 494e8d7b authored by dsnopek's avatar dsnopek Committed by joseph.olstad

Issue #2784245 by dsnopek: YouTube player stopped appearing (legacy player no longer working)

parent 1bbd3836
......@@ -86,13 +86,20 @@ Lightvideo = {
var results = pattern.exec(href);
if (results !== null) {
Lightbox.videoId = results[1];
var href = "http://www.youtube.com/v/"+Lightbox.videoId;
var href = "//www.youtube.com/embed/"+Lightbox.videoId;
var variables = 'fs=1';
if (Lightbox.flvFlashvars.length) {
variables = variables + '&' + Lightbox.flvFlashvars;
href = href + '&' + variables;
}
Lightvideo.createEmbed(href, "flvvideo", "#ffffff", variables);
var id = 'flvvideo';
Lightbox.modalHTML = '<iframe ' +
'src="' + href + '" ' +
'id="' + id + '" name="' + id + '" ' +
'height="' + Lightbox.modalHeight + '" ' +
'width="' + Lightbox.modalWidth + '" ' +
'frameborder="0" allowfullscreen' +
'></iframe>';
return true;
}
}
......@@ -210,4 +217,4 @@ Lightvideo = {
};
//End jQuery block
}(jQuery));
\ No newline at end of file
}(jQuery));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment