Merge pull request #3721 from alfonso-salces/MOBILE-4346

MOBILE-4346 ogvjs: Fix bugs for iPadOS
main
Dani Palou 2023-06-26 09:27:43 +02:00 committed by GitHub
commit 7bf9a80df5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}
}