MOBILE-4346 ogvjs: Fix bugs for iPadOS
parent
21ff63e413
commit
ac3155c585
|
@ -186,7 +186,7 @@ export class VideoJSOgvJS extends Tech {
|
||||||
* @returns True if volume can be controlled.
|
* @returns True if volume can be controlled.
|
||||||
*/
|
*/
|
||||||
static canControlVolume(): boolean {
|
static canControlVolume(): boolean {
|
||||||
if (CorePlatform.isIPhone()) {
|
if (CorePlatform.isIPhone() || CorePlatform.isIPad()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -393,7 +393,7 @@ export class VideoJSOgvJS extends Tech {
|
||||||
*/
|
*/
|
||||||
setVolume(percentAsDecimal: number): void {
|
setVolume(percentAsDecimal: number): void {
|
||||||
// eslint-disable-next-line no-prototype-builtins
|
// 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;
|
this.el_.volume = percentAsDecimal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue