forked from lopezs/ableplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest15.html
More file actions
88 lines (76 loc) · 3.04 KB
/
test15.html
File metadata and controls
88 lines (76 loc) · 3.04 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Able Player Test #15</title>
<link rel="stylesheet" href="tests.css" type="text/css">
<!-- Dependencies -->
<script src="../thirdparty/modernizr.custom.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="../thirdparty/jquery.cookie.js"></script>
<!-- Able Player CSS -->
<link rel="stylesheet" href="../styles/ableplayer.css" type="text/css"/>
<!-- CSS for search results -->
<link rel="stylesheet" href="../styles/ableplayer-search.css" type="text/css"/>
<!-- Able Player JavaScript -->
<script src="../build/ableplayer.js"></script>
<!-- Style for this example only -->
<style>
main {
position: relative;
width: 100%;
margin: 0;
}
#player {
float: left;
width: 480px;
margin: 0;
}
#results-wrapper {
height: 500px;
margin: 0;
padding-left: 510px;
padding-top: 1em;
}
#results-wrapper p {
font-size: 1.1em;
margin-left: 1em;
}
#search-term {
font-weight: bold;
font-style: italic;
}
</style>
</head>
<body>
<h1>Able Player Test #15:<br/>Video player with search</h1>
<p>Search terms are provided to the player using the <em>data-search</em> attribute.
In this hypothetical example, we have entered the search term "web mouse" into a search field.
On the search results page, the <em>data-search</em> attribute of the <video> element
is populated "web mouse" on page. Also the <em>data-search-div</em> attribute is populated with
the id of an external <div> in which to display the search results.
Finally, <em>data-use-transcript-button</em> is set to "false", since there isn't room on this page
for both search results <em>and</em> a transcript (although the latter is optional).
</p>
<p>For additional test see the <a href="index.html">Index of <em>Able Player</em> Examples</a>.</p>
<!-- to write transcript to an external div, pass id of an empty div via data-transcript-div -->
<main role="main">
<div id="player">
<video id="video1" preload="auto" width="480" height="360" poster="../media/wwa.jpg" data-able-player data-search="you web" data-search-div="results" data-use-transcript-button="false">
<source type="video/webm" src="../media/wwa.webm" data-desc-src="../media/wwa_described.webm"/>
<source type="video/mp4" src="../media/wwa.mp4" data-desc-src="../media/wwa_described.mp4"/>
<track kind="captions" src="../media/wwa_captions_en.vtt" srclang="en" label="English"/>
<track kind="captions" src="../media/wwa_captions_es.vtt" srclang="es" label="Espanol"/>
<track kind="descriptions" src="../media/wwa_description_en.vtt" srclang="en"/>
<track kind="descriptions" src="../media/wwa_description_es.vtt" srclang="es"/>
</video>
</div>
<div id="results-wrapper">
<h2>Your Search Results</h2>
<p>You searched for: <span id="search-term">you web</span></p>
<div id="results" class="able-search-results"></div>
</div>
<div id="transcript"></div>
</main>
</body>
</html>