Commit 2289b929 authored by Hakim El Hattab's avatar Hakim El Hattab Committed by GitHub
Browse files

Merge pull request #1851 from astone123/master

Fix data-background-video autoplay on iOS Safari
parents d1d44cf6 d9dd9a92
......@@ -1462,7 +1462,7 @@
* target element.
*
* remaining height = [ configured parent height ] - [ current parent height ]
*
*
* @param {HTMLElement} element
* @param {number} [height]
*/
......@@ -3113,6 +3113,8 @@
// Videos
else if ( backgroundVideo && !isSpeakerNotes() ) {
var video = document.createElement( 'video' );
video.setAttribute( 'autoplay', '' );
video.setAttribute( 'playsinline', '' );
if( backgroundVideoLoop ) {
video.setAttribute( 'loop', '' );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment