forked from mozilla/popcorn-js
/
popcorn.parserSBV.html
executable file
·49 lines (40 loc) · 1.39 KB
/
popcorn.parserSBV.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
<!DOCTYPE html>
<html>
<head>
<title>Popcorn 1.0 SBV parser Plug-in Demo</title>
<script src="../../popcorn.js"></script>
<script src="../../modules/parser/popcorn.parser.js"></script>
<script src="../../plugins/subtitle/popcorn.subtitle.js"></script>
<script src="popcorn.parserSBV.js"></script>
<script>
document.addEventListener( "DOMContentLoaded", function () {
var p = Popcorn( "#video" )
.parseSBV( "data/data.sbv" )
.volume( 0 )
.play();
}, false);
</script>
</head>
<body>
<h1 id="qunit-header">Popcorn 1.0 SBV parser Plug-in Demo</h1>
<p>From 2.4 to 7.2 seconds, "Senator, we're making our final approach into Coruscant." is shown
<br />From 9.712 to 13.399 seconds, "Very good, Lieutenant." is shown
<br />From 15.042 to 18.042 seconds, "It's a trap!" is shown</p>
<div>
<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>
<h4>Subtitle Source<h4>
<iframe id="srcDisplay" src="data/data.sbv"></iframe>
</body>
</html>