Skip to content

Commit

Permalink
YouTube高速再生機能で関連動画を表示しない設定をデフォルトに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Sep 27, 2018
1 parent 6075a77 commit 2760d5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ function youtube_embed_oembed_html ($cache, $url, $attr) {
//$youtube_new_url = 'https://www.youtube.com/embed/'.$json['video_id'].'?feature=oembed&autoplay=1';
$youtube = str_replace($youtube_old_url, $youtube_new_url, $youtube);
}

// $video_tag = '<video src="'.$youtube_new_url.'" muted autoplay></video>';
// $youtube = $video_tag;
$youtube = htmlentities($youtube);
//$youtube = htmlentities(str_replace( '=oembed','=oembed&autoplay=1', $youtube ));

Expand Down

0 comments on commit 2760d5d

Please sign in to comment.