forked from vagnervjs/frame-player
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
38 lines (35 loc) · 986 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Frame Player</title>
<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>
const fpOptions = ({
'rate': 20,
'controls': true,
'backwards': false,
'startFrame': 1,
'width': '640px',
});
const player01 = new FramePlayer('my-player-01', fpOptions);
const player02 = new FramePlayer('my-player-02', fpOptions);
player01.play();
player02.play();
</script>
</body>
</html>