forked from mozilla/popcorn-js
/
popcorn.documentcloud.html
executable file
·56 lines (52 loc) · 1.42 KB
/
popcorn.documentcloud.html
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
<!DOCTYPE html>
<head>
<script src="../../popcorn.js"></script>
<script src="popcorn.documentcloud.js"></script>
<script>
Popcorn(function() {
var popcorn = Popcorn( "#video" )
.documentcloud({
start: 3,
end: 6,
url: "http://www.documentcloud.org/documents/70050-urbina-day-1-in-progress.html",
width: 900,
height: 500,
showAnnotations: true,
page: 5,
target: "documentcloud-div"
})
.documentcloud({
start: 7,
end: 10,
url: "http://www.documentcloud.org/documents/70050-urbina-day-1-in-progress.html",
page: 25,
target: "documentcloud-div"
})
.documentcloud({
start: 11,
end: 20,
url: "http://www.documentcloud.org/documents/70050-urbina-day-1-in-progress.html",
aid: 9899,
target: "documentcloud-div"
})
.volume( 0 )
.play();
});
</script>
</head>
<body>
<video id="video"
controls
width="250px"
poster="../../test/poster.png">
<source id="mp4"
src="../../test/trailer.mp4"
type='video/mp4; codecs="avc1, mp4a"'>
<source id="ogv"
src="../../test/trailer.ogv"
type='video/ogg; codecs="theora, vorbis"'>
<p>Your user agent does not support the HTML5 Video element.</p>
</video>
<div id="documentcloud-div"></div>
</body>
</html>