bg videos remain muted on mobile, otherwise broken when navigating with swipe gestures
This commit is contained in:
		
							parent
							
								
									2fccb77405
								
							
						
					
					
						commit
						9ff27cfbc9
					
				
					 4 changed files with 9 additions and 4 deletions
				
			
		|  | @ -117,7 +117,12 @@ export default class SlideContent { | |||
| 					} | ||||
| 
 | ||||
| 					// Enable inline playback in mobile Safari
 | ||||
| 					//
 | ||||
| 					// Mute is required for video to play when using
 | ||||
| 					// swipe gestures to navigate since they don't
 | ||||
| 					// count as direct user actions :'(
 | ||||
| 					if( isMobile ) { | ||||
| 						video.muted = true; | ||||
| 						video.setAttribute( 'playsinline', '' ); | ||||
| 					} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue