MDL-38158 media: some players do not want fallback to other players

there is already logic to determine whether html5 is supported;
otherwise we may end up with nested <audio> or <video> tags
This commit is contained in:
Marina Glancy
2016-11-07 11:55:05 +08:00
parent 737638d950
commit fbb36ed1e6
7 changed files with 68 additions and 11 deletions
+3 -1
View File
@@ -65,7 +65,9 @@ class media_html5audio_plugin extends core_media_player_native {
$size = 'width="' . $width . '"';
}
$fallback = core_media_player::PLACEHOLDER;
// We don't want fallback to another player because list_supported_urls() is already smart.
// Otherwise we could end up with nested <audio> tags. Fallback to link only.
$fallback = self::LINKPLACEHOLDER;
return <<<OET
<audio controls="true" $size class="mediaplugin mediaplugin_html5audio" preload="none" title="$title">