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