Commit d9dd9a92 authored by ADAM STONE's avatar ADAM STONE
Browse files

Fix video background autoplay on iOS

parent a349ff43
......@@ -1426,7 +1426,7 @@
* target element.
*
* remaining height = [ configured parent height ] - [ current parent height ]
*
*
* @param {HTMLElement} element
* @param {number} [height]
*/
......@@ -3058,6 +3058,8 @@
// Videos
else if ( backgroundVideo && !isSpeakerNotes() ) {
var video = document.createElement( 'video' );
video.setAttribute( 'autoplay', '' );
video.setAttribute( 'playsinline', '' );
if( backgroundVideoLoop ) {
video.setAttribute( 'loop', '' );
......@@ -3900,7 +3902,7 @@
// If there are media elements with data-autoplay,
// automatically set the autoSlide duration to the
// length of that media. Not applicable if the slide
// is divided up into fragments.
// is divided up into fragments.
// playbackRate is accounted for in the duration.
if( currentSlide.querySelectorAll( '.fragment' ).length === 0 ) {
toArray( currentSlide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
......
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