forked from boronia/ableplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfallback.html
More file actions
69 lines (55 loc) · 3.28 KB
/
Copy pathfallback.html
File metadata and controls
69 lines (55 loc) · 3.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Able Player Fallback Test</title>
<link rel="stylesheet" href="demos.css" type="text/css">
<!-- Dependencies -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="../thirdparty/js.cookie.js"></script>
<!-- Able Player CSS -->
<link rel="stylesheet" href="../build/ableplayer.min.css" type="text/css"/>
<!-- Able Player JavaScript -->
<script src="../build/ableplayer.js"></script>
</head>
<body>
<h1>Able Player Fallback Test</h1>
<p>This page includes three examples of media elements with fallback content:</p>
<ol>
<li>An HTML <audio> element, with fallback HTML content nested inside it.</li>
<li>An HTML <video> element, with fallback HTML content nested inside it.</li>
<li>Another HTML <video> element, with no fallback content. In this example, the fallback content is provided by Able Player.</li>
</ol>
<p>If the media has a **poster** attribute, the image identified in the poster is displayed, but is slightly transparent in order
to communicate that something isn't quite right.</p>
<p>To test the fallback in a modern browser, add the <strong>data-test-fallback</strong> attribute to the <audio> or <video> element.</p>
<p>For additional demos see the <a href="index.html">Index of <em>Able Player</em> Examples</a>.</p>
<h2>Audio Example with Nested Fallback Content</h2>
<audio id="audio1" width="480" preload="auto" data-able-player data-test-fallback>
<source type="audio/mpeg" src="../media/smallf.mp3"/>
<source type="audio/ogg" src="../media/smallf.ogg"/>
<p>This is example fallback content, nested within the <audio> element.
It could provide alternative content, such as a link for downloading the audio file
or a link to a transcript.</p>
</audio>
<h2>Video Example with Nested Fallback Content</h2>
<video id="video1" preload="auto" width="480" height="360" poster="../media/wwa.jpg" data-able-player data-test-fallback>
<source type="video/mp4" src="../media/wwa.mp4" data-desc-src="../media/wwa_described.mp4"/>
<source type="video/webm" src="../media/wwa.webm" data-desc-src="../media/wwa_described.webm"/>
<track kind="captions" src="../media/wwa_captions_en.vtt" srclang="en" label="English"/>
<track kind="descriptions" src="../media/wwa_description_en.vtt" srclang="en"/>
<track kind="chapters" src="../media/wwa_chapters_en.vtt" srclang="en"/>
<p>This is example fallback content, nested within the <video> element.
It could provide alternative content, such as a link for downloading the video file (with open or embedded captions)
or a link to a transcript.</p>
</video>
<h2>Video Example with No Nested Fallback Content</h2>
<video id="video2" preload="auto" width="480" height="360" poster="../media/wwa.jpg" data-able-player data-test-fallback>
<source type="video/mp4" src="../media/wwa.mp4" data-desc-src="../media/wwa_described.mp4"/>
<source type="video/webm" src="../media/wwa.webm" data-desc-src="../media/wwa_described.webm"/>
<track kind="captions" src="../media/wwa_captions_en.vtt" srclang="en" label="English"/>
<track kind="descriptions" src="../media/wwa_description_en.vtt" srclang="en"/>
<track kind="chapters" src="../media/wwa_chapters_en.vtt" srclang="en"/>
</video>
</body>
</html>