Skip to content

Commit

Permalink
updated to handle offline playing
Browse files Browse the repository at this point in the history
  • Loading branch information
juliantenney committed Sep 18, 2015
1 parent 487f34e commit ea6ad84
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@
var html = "<iframe";
html += " width=\"" + iframe.width + "\"";
html += " height=\"" + iframe.height + "\"";
html += " src=\"//www.youtube.com/embed/" + iframe.code;

if (xot_offline == true) {
html += " src=\"https://www.youtube.com/embed/" + iframe.code;
} else {
html += " src=\"//www.youtube.com/embed/" + iframe.code;
}

var params = "?wmode=opaque";
if (iframe.time > 0) {
params += "&start=" + iframe.time;
Expand Down

0 comments on commit ea6ad84

Please sign in to comment.