-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
executable file
·34 lines (32 loc) · 1.17 KB
/
test.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
<html>
<head>
<title>Test af video element</title>
<script src="js/class.js"> </script>
<script src="js/test.js"> </script>
<!-- <script src="js/video.js"> </script>-->
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body onload="start();">
<div id="display1" class="upVideoDisplay"></div>
<div id="display2" class="upVideoDisplay"></div>
<script>
function doit() {
var display1 = document.getElementById('display1');
vid1 = upVideo();
vid1.setup(display1);
vid1.autoPlay = false;
vid1.loadVideo('trailer_400p');
var display2 = document.getElementById('display2');
vid2 = upVideo();
vid2.setup(display2);
vid2.autoPlay = false;
vid2.loadVideo('trailer_400p');
}
function start() {
var display1 = document.getElementById('display1');
d = new upVideo(display1);
d.loadVideo('trailer_400p');
}
</script>
</body>
</html>