MDL-81393 media_videojs: Switch to use Ogv.Js tech for Chrome
This commit is contained in:
@@ -309,7 +309,9 @@ class media_videojs_plugin extends core_media_player_native {
|
||||
// Ogv.JS Tech.
|
||||
$this->ogvtech = false;
|
||||
if (in_array($ext, $this->ogvsupportedextensions) &&
|
||||
(core_useragent::is_safari() || core_useragent::is_ios())) {
|
||||
(core_useragent::is_safari() || core_useragent::is_ios() || core_useragent::is_chrome())) {
|
||||
// Chrome has stopped supporting OGV in the latest version. Refer: https://caniuse.com/ogv.
|
||||
// We need to enable Ogv.JS Tech plugin for Safari, iOS and Chrome.
|
||||
$this->ogvtech = true;
|
||||
$result[] = $url;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user