Merge pull request #3721 from alfonso-salces/MOBILE-4346
MOBILE-4346 ogvjs: Fix bugs for iPadOS
This commit is contained in:
		
						commit
						7bf9a80df5
					
				@ -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;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user