summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordsnopek2016-08-22 19:47:59 (GMT)
committerjoseph.olstad2016-08-22 19:49:43 (GMT)
commit494e8d7be82279925c3c118fd2f899512e5f4b90 (patch)
treec595ed625beed610b114073f642f4d9aa1c788a7
parent1bbd38367bfd59cb0352909c9803f4bac7b7bb4c (diff)
Issue #2784245 by dsnopek: YouTube player stopped appearing (legacy player no longer working)
-rw-r--r--js/lightbox_video.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/js/lightbox_video.js b/js/lightbox_video.js
index 8397f7b..d424953 100644
--- a/js/lightbox_video.js
+++ b/js/lightbox_video.js
@@ -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));