Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-22733 enable youtube iframe embedding

  • Loading branch information...
commit c4b491a417d3b897f1ada34f202c9cc3dd49635a 1 parent 92a387b
@skodak skodak authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  filter/mediaplugin/filter.php
View
3  filter/mediaplugin/filter.php
@@ -672,8 +672,7 @@ function filter_mediaplugin_youtube_callback($link) {
$width = empty($link[5]) ? FILTER_MEDIAPLUGIN_VIDEO_WIDTH : $link[5];
$height = empty($link[6]) ? FILTER_MEDIAPLUGIN_VIDEO_HEIGHT : $link[6];
- if (false and empty($CFG->xmlstrictheaders)) {
- // TODO: remove this once iframe playback starts to work properly in iPads
+ if (empty($CFG->xmlstrictheaders)) {
return <<<OET
<iframe title="$info" width="$width" height="$height" src="$site/embed/$videoid?rel=0" frameborder="0" allowfullscreen></iframe>
OET;
Please sign in to comment.
Something went wrong with that request. Please try again.