-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdemo.html
27 lines (27 loc) · 914 Bytes
/
demo.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Video Player Demo</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./video.css" media="screen" />
<style type="text/css">
body { font-family:Helvetica,Arial,sans-serif; }
</style>
</head>
<body>
<video id="video" preload="preload" width="621" height="264">
<source src="./oceans.theora.ogv" type='video/ogg; codecs="theora, vorbis"' />
<track kind="captions" src="./oceans.vtt" />
</video>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="./video.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var v = $('#video'),
t = v.find('track'),
video = new videoPlayer(v);
video.track = new videoTrack(v,t,{$container:video.$wrap});
});
</script>
</body>
</html>