mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
MDL-48093 HTML 5 video: Firefox now supports .mp4
This commit is contained in:
parent
683d7de4d1
commit
540af6f38e
@ -1071,8 +1071,11 @@ OET;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
// Formats .m4v and .mp4 are not supported in Firefox or Opera.
|
||||
if (core_useragent::is_firefox() || core_useragent::is_opera()) {
|
||||
// Formats .m4v and .mp4 are not supported in Opera, or in Firefox before 27.
|
||||
// https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats
|
||||
// has the details.
|
||||
if (core_useragent::is_opera() || (core_useragent::is_firefox() &&
|
||||
!core_useragent::check_firefox_version(27))) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@ -1140,8 +1143,15 @@ OET;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
// Formats .aac, .mp3, and .m4a are not supported in Firefox or Opera.
|
||||
if (core_useragent::is_firefox() || core_useragent::is_opera()) {
|
||||
// Formats .aac, .mp3, and .m4a are not supported in Opera.
|
||||
if (core_useragent::is_opera()) {
|
||||
continue;
|
||||
}
|
||||
// Formats .mp3 and .m4a were not reliably supported in Firefox before 27.
|
||||
// https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats
|
||||
// has the details. .aac is still not supported.
|
||||
if (core_useragent::is_firefox() && ($ext === 'aac' ||
|
||||
!core_useragent::check_firefox_version(27))) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user