MDL-81393 media_videojs: Switch to use Ogv.Js tech for Chrome

This commit is contained in:
Huong Nguyen
2024-04-02 10:27:07 +07:00
parent 1c530d86d1
commit 9ae3cd1be7
+3 -1
View File
@@ -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;