Allowing autoplay in data-background-iframe for audio and video elements
It was restricted by «Autoplay Policy Changes»: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe
This commit is contained in:
		
							parent
							
								
									99c3498253
								
							
						
					
					
						commit
						bdda443335
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -3855,6 +3855,7 @@
 | 
			
		|||
					iframe.setAttribute( 'allowfullscreen', '' );
 | 
			
		||||
					iframe.setAttribute( 'mozallowfullscreen', '' );
 | 
			
		||||
					iframe.setAttribute( 'webkitallowfullscreen', '' );
 | 
			
		||||
					iframe.setAttribute( 'allow', 'autoplay' );
 | 
			
		||||
 | 
			
		||||
					iframe.setAttribute( 'data-src', backgroundIframe );
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue