MOBILE-4346 ogvjs: Fix bugs for iPadOS

main
Alfonso Salces 2023-06-23 10:54:02 +02:00
parent 21ff63e413
commit ac3155c585
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}