mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-05 14:17:56 +02:00
Fix video background autoplay on iOS
This commit is contained in:
@@ -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', '' );
|
||||||
|
Reference in New Issue
Block a user