MDL-52958 medialib: Allow vimeo fullscreen using links
authorDavid Monllao <davidm@moodle.com>
Fri, 5 Feb 2016 02:15:08 +0000 (10:15 +0800)
committerDavid Monllao <davidm@moodle.com>
Fri, 5 Feb 2016 02:15:08 +0000 (10:15 +0800)
All credit to Henrik Sune Pedersen.

lib/medialib.php

index 0d0bd35..7b36416 100644 (file)
@@ -494,7 +494,8 @@ class core_media_player_vimeo extends core_media_player_external {
         $output = <<<OET
 <span class="mediaplugin mediaplugin_vimeo">
 <iframe title="$info" src="https://player.vimeo.com/video/$videoid"
-  width="$width" height="$height" frameborder="0"></iframe>
+  width="$width" height="$height" frameborder="0"
+  webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
 </span>
 OET;