MOBILE-4346 ogvjs: Fix bugs for iPadOS
This commit is contained in:
		
							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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user