返回 reveal.js
media.html
根目录 / examples / media.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8" />
5
6 <title>reveal.js - Video, Audio and Iframes</title>
7
8 <meta
9 name="viewport"
10 content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
11 />
12
13 <link rel="stylesheet" href="../dist/reveal.css" />
14 <link rel="stylesheet" href="../dist/theme/white.css" id="theme" />
15 </head>
16
17 <body>
18 <div class="reveal">
19 <div class="slides">
20 <section>
21 <h2>Examples of embedded Video, Audio and Iframes</h2>
22 </section>
23
24 <section>
25 <h2>Iframe</h2>
26 <iframe
27 data-autoplay
28 width="700"
29 height="540"
30 src="https://slides.com/news/auto-animate/embed"
31 frameborder="0"
32 ></iframe>
33 </section>
34
35 <section
36 data-background-iframe="https://www.youtube.com/embed/h1_nyI3z8gI"
37 data-background-interactive
38 >
39 <h2 style="color: #fff">Iframe Background</h2>
40 </section>
41
42 <section>
43 <h2>Video</h2>
44 <video src="assets/video.mp4" data-autoplay></video>
45 </section>
46
47 <section data-background-video="assets/video.mp4">
48 <h2>Background Video</h2>
49 </section>
50
51 <section>
52 <h2>Auto-playing audio</h2>
53 <audio src="assets/beeping.wav" data-autoplay></audio>
54 </section>
55
56 <section>
57 <h2>Audio inside slide fragments</h2>
58 <div class="fragment">
59 Beep 1
60 <audio src="assets/beeping.wav" data-autoplay></audio>
61 </div>
62 <div class="fragment">
63 Beep 2
64 <audio src="assets/beeping.wav" data-autoplay></audio>
65 </div>
66 </section>
67
68 <section>
69 <h2>Audio with controls</h2>
70 <audio src="assets/beeping.wav" controls></audio>
71 </section>
72 </div>
73 </div>
74
75 <script src="../dist/reveal.js"></script>
76 <script>
77 Reveal.initialize({ hash: true });
78 </script>
79 </body>
80 </html>
81
81 lines HTML