This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.html
56 lines (54 loc) · 1.86 KB
/
index.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>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML5 video player</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.hvideo.js" type="text/javascript" charset="utf-8"></script>
<script src="hvideo-debug.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="hvideo.css" type="text/css" media="screen" title="HTML5 video base style" charset="utf-8">
<script type="text/javascript" charset="utf-8">
$(function(){
$('#test1').hvideo({
//autoresize: true
});
// Using hvideo-debug.js we can enable logging alot of stuff to console:
//hvideo.debug('#test1');
});
</script>
<style type="text/css" media="screen">
body { background:#eee; }
#test1 { margin-top:20px; margin-left:20px; }
</style>
</head>
<body>
<div id="test1" class="hvideo">
<controls>
<button class="play-pause paused" title="Toggle playback"></button>
<extended>
<bar class="position" title="Current position">
<p class="meta">0:00</p>
</bar>
<bar class="total">
<p class="meta" title="Total length">0:00</p>
</bar>
<bar class="buffered"></bar>
<bar class="unbuffered"></bar>
<button class="mute-audio" title="Mute/unmute audio"></button>
<button class="zoom" title="Zoom in/out"></button>
</extended>
</controls>
<video width="640" height="360"
poster="http://hunch.se/tmp/Spotify_-_the_story.jpg"
autobuffer>
<source src="http://hunch.se/tmp/Spotify_-_the_story_720p.mp4"
type="video/mp4">
<source src="http://hunch.se/tmp/Spotify_-_the_story_720p.ogv"
type="video/ogg">
<div class="fallback">
You must have an HTML5 capable browser.
</div>
</video>
</div>
</body>
</html>