From ac3155c585f09fd8e0a69f79e96baea8359634fc Mon Sep 17 00:00:00 2001 From: Alfonso Salces Date: Fri, 23 Jun 2023 10:54:02 +0200 Subject: [PATCH] MOBILE-4346 ogvjs: Fix bugs for iPadOS --- src/addons/filter/mediaplugin/classes/videojs-ogvjs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addons/filter/mediaplugin/classes/videojs-ogvjs.ts b/src/addons/filter/mediaplugin/classes/videojs-ogvjs.ts index 3301aecb6..151d4c235 100644 --- a/src/addons/filter/mediaplugin/classes/videojs-ogvjs.ts +++ b/src/addons/filter/mediaplugin/classes/videojs-ogvjs.ts @@ -186,7 +186,7 @@ export class VideoJSOgvJS extends Tech { * @returns True if volume can be controlled. */ static canControlVolume(): boolean { - if (CorePlatform.isIPhone()) { + if (CorePlatform.isIPhone() || CorePlatform.isIPad()) { return false; } @@ -393,7 +393,7 @@ export class VideoJSOgvJS extends Tech { */ setVolume(percentAsDecimal: number): void { // eslint-disable-next-line no-prototype-builtins - if (!CorePlatform.isIPhone() && this.el_.hasOwnProperty('volume')) { + if (!CorePlatform.isIPhone() && !CorePlatform.isIPad() && this.el_.hasOwnProperty('volume')) { this.el_.volume = percentAsDecimal; } }