-
Notifications
You must be signed in to change notification settings - Fork 1
/
viditor.html
54 lines (53 loc) · 1.12 KB
/
viditor.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
<!doctype html>
<html>
<script src="dist/viditor.js"></script>
<script>
var protovideo = {
"width": 1280,
"height": 720,
"assets": {
"missing": {
"url": "https://www.youtube.com/watch?v=UiyDmqO59QE"
},
"late for work": {
"url": "https://www.youtube.com/watch?v=kfchvCyHmsc"
}
},
"clips": [
{
"asset": "missing",
"tick": 0,
"track": 0,
"trim": {
"left": 2,
"right": 0
},
"size": {
"width": 640,
"height": 360
}
},
{
"asset": "late for work",
"tick": 4,
"track": 1,
"trim": {
"left": 2,
"right": 0
},
"size": {
"width": 640,
"height": 360
},
"offset": {
"x": 640,
"y": 360
}
}
]
}
Viditor.fusion(protovideo, function(video) {
window.location = video.content
})
</script>
</html>