mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 23:59:41 +02:00
MDL-53687 core_media: Edge does not yet support WebM and OGG
This commit is contained in:
parent
2c952b2f38
commit
c2f430a813
1 changed files with 3 additions and 3 deletions
|
@ -1123,8 +1123,8 @@ OET;
|
|||
// is a simplified version, does not take into account old browser
|
||||
// versions or manual plugins.
|
||||
if ($ext === 'ogv' || $ext === 'webm') {
|
||||
// Formats .ogv and .webm are not supported in IE or Safari.
|
||||
if (core_useragent::is_ie() || core_useragent::is_safari()) {
|
||||
// Formats .ogv and .webm are not supported in IE, Edge or Safari.
|
||||
if (core_useragent::is_ie() || core_useragent::is_edge() || core_useragent::is_safari()) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
|
@ -1196,7 +1196,7 @@ OET;
|
|||
if (in_array($ext, $extensions)) {
|
||||
if ($ext === 'ogg' || $ext === 'oga') {
|
||||
// Formats .ogg and .oga are not supported in IE or Safari.
|
||||
if (core_useragent::is_ie() || core_useragent::is_safari()) {
|
||||
if (core_useragent::is_ie() || core_useragent::is_edge() || core_useragent::is_safari()) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue