Fix video background autoplay on iOS
This commit is contained in:
parent
a349ff43c5
commit
d9dd9a92fb
|
@ -3058,6 +3058,8 @@
|
||||||
// Videos
|
// Videos
|
||||||
else if ( backgroundVideo && !isSpeakerNotes() ) {
|
else if ( backgroundVideo && !isSpeakerNotes() ) {
|
||||||
var video = document.createElement( 'video' );
|
var video = document.createElement( 'video' );
|
||||||
|
video.setAttribute( 'autoplay', '' );
|
||||||
|
video.setAttribute( 'playsinline', '' );
|
||||||
|
|
||||||
if( backgroundVideoLoop ) {
|
if( backgroundVideoLoop ) {
|
||||||
video.setAttribute( 'loop', '' );
|
video.setAttribute( 'loop', '' );
|
||||||
|
|
Loading…
Reference in New Issue