data-autoslide attribute takes precedence over video duration
parent
b7487b8b4f
commit
b1e5db0ec9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -31,6 +31,11 @@
|
|||
<h2 style="color: #fff;">Iframe Background</h2>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>Video</h2>
|
||||
<video src="https://static.slid.es/site/homepage/v1/homepage-video-editor.mp4" data-autoplay></video>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>Auto-playing audio</h2>
|
||||
<audio src="assets/beeping.wav" data-autoplay></audio>
|
||||
|
@ -59,9 +64,7 @@
|
|||
|
||||
<script src="../dist/reveal.js"></script>
|
||||
<script>
|
||||
Reveal.initialize({
|
||||
transition: 'linear'
|
||||
});
|
||||
Reveal.initialize();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -2067,7 +2067,6 @@ export default function( revealElement, options ) {
|
|||
}
|
||||
else {
|
||||
autoSlide = config.autoSlide;
|
||||
}
|
||||
|
||||
// If there are media elements with data-autoplay,
|
||||
// automatically set the autoSlide duration to the
|
||||
|
@ -2083,6 +2082,7 @@ export default function( revealElement, options ) {
|
|||
}
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
// Cue the next auto-slide if:
|
||||
// - There is an autoSlide value
|
||||
|
|
Loading…
Reference in New Issue