-
Notifications
You must be signed in to change notification settings - Fork 107
/
index.html
52 lines (41 loc) · 1.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Frame Player</title>
<!-- Development -->
<!-- <link rel="stylesheet" href="src/frameplayer.css"> -->
<!-- Production -->
<link rel="stylesheet" href="dist/frameplayer.min.css">
<style>
.frameplayer {
float: left;
margin: 10px;
}
</style>
</head>
<body>
<div id="my-player-01" class="frameplayer" data-vidsrc="videos/dragons.json"></div>
<div id="my-player-02" class="frameplayer" data-vidsrc="videos/video02.json"></div>
<!-- Development -->
<!-- <script src="src/frameplayer.js"></script> -->
<!-- Production -->
<script src="dist/frameplayer.min.js"></script>
<script>
var fpOptions = ({
'rate': 30,
'controls': true,
'autoplay': true,
'backwards': false,
'startFrame': 10,
'width': '400px',
'height': '260px'
});
var player01 = new FramePlayer('my-player-01', fpOptions);
fpOptions.autoplay = false
var player02 = new FramePlayer('my-player-02', fpOptions);
player01.play();
player02.gotoFrame(30);
</script>
</body>
</html>