mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merge branch 'MDL-73046-master' of https://github.com/junpataleta/moodle
This commit is contained in:
commit
5c05b019ae
@ -50,6 +50,10 @@ class media_html5video_plugin extends core_media_player_native {
|
||||
$sources = array();
|
||||
foreach ($urls as $url) {
|
||||
$mimetype = core_media_manager::instance()->get_mimetype($url);
|
||||
if ($mimetype === 'video/quicktime' && (core_useragent::is_chrome() || core_useragent::is_edge())) {
|
||||
// Set mimetype of quicktime videos to mp4 for Chrome/Edge browsers.
|
||||
$mimetype = 'video/mp4';
|
||||
}
|
||||
$source = html_writer::empty_tag('source', array('src' => $url, 'type' => $mimetype));
|
||||
if ($mimetype === 'video/mp4') {
|
||||
if ($oldandroid) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user