【发布时间】:2015-02-28 10:45:54
【问题描述】:
我在 Reveal.js 演示文稿中添加了几个视频,如下所示:
<section data-background-video="https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.mp4,https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.webm">
</section>
一切看起来都应该如此,但我想在背景中循环播放一些视频以表达情绪。我找不到用于循环数据背景视频的任何数据属性。最好的方法是什么?我在将普通视频标签放入其中并使其全屏显示 css 时遇到奇怪的问题。 (这里描述Fullscreen Video with CSS)。 Reveal.js 有什么想法吗?
【问题讨论】:
-
实际上我在推特上问过@hakimei,他告诉我 data-background-video-loop 属性在当前的reveal.js开发版本中,并将在下一个版本中。
标签: html video background reveal.js