Skip to content

Commit

Permalink
Use scheme-less urls for youtube embeds.
Browse files Browse the repository at this point in the history
  • Loading branch information
tburry committed Aug 29, 2013
1 parent 8f39e5a commit 2899eb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/global.js
Expand Up @@ -1168,7 +1168,7 @@ jQuery(document).ready(function($) {
var width = $preview.width(), height = $preview.height(), videoid = $container.attr('id').replace('youtube-', '');


var html = '<iframe width="'+width+'" height="'+height+'" src="http://www.youtube.com/embed/'+videoid+'?autoplay=1" frameborder="0" allowfullscreen></iframe>';
var html = '<iframe width="'+width+'" height="'+height+'" src="//www.youtube.com/embed/'+videoid+'?autoplay=1" frameborder="0" allowfullscreen></iframe>';
$player.html(html);

$preview.hide();
Expand Down
2 changes: 1 addition & 1 deletion library/core/class.format.php
Expand Up @@ -1067,7 +1067,7 @@ protected static function LinksCallback($Matches) {
$TimeMarker = isset($Matches['HasTime']) ? '&amp;start='.$Matches['Time'] : '';
$Result = '<span class="VideoWrap">';
$Result .= '<span class="Video YouTube" id="youtube-'.$ID.'">';
$Result .= '<span class="VideoPreview"><a href="http://youtube.com/watch?v='.$ID.'"><img src="http://img.youtube.com/vi/'.$ID.'/0.jpg" width="'.$Width.'" height="'.$Height.'" border="0" /></a></span>';
$Result .= '<span class="VideoPreview"><a href="//youtube.com/watch?v='.$ID.'"><img src="//img.youtube.com/vi/'.$ID.'/0.jpg" width="'.$Width.'" height="'.$Height.'" border="0" /></a></span>';
$Result .= '<span class="VideoPlayer"></span>';
$Result .= '</span>';
$Result .= '</span>';
Expand Down

0 comments on commit 2899eb5

Please sign in to comment.