-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtest-timeline.html
137 lines (116 loc) · 5.77 KB
/
test-timeline.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{% load static%}
<html>
<head>
<link rel="icon" type="image/png" href= 'static/images/Logo-32.png' sizes="32x32" />
<link rel="icon" type="image/png" href='static/images/Logo-16.png' sizes="16x16" />
<link rel="stylesheet" href='static/css/video-editing.css'>
<link rel="stylesheet" href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css'/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href= 'static/timeline/samples/css/default.css' rel="stylesheet">
<script src='static/timeline/bower_components/jquery/dist/jquery.js'></script>
<script src='static/timeline/bower_components/jquery-ui/jquery-ui.min.js' ></script>
<script src='static/timeline/bower_components/raphael/raphael.js'></script>
<!-- style-player -->
<link href='static/timeline/build/css/amalia.js.min.css' rel="stylesheet">
<!-- /style-player -->
<!-- script-player -->
<script src='static/timeline/build/js/amalia.js.min.js'></script>
<script src='static/timeline/build/js/amalia.js-plugin-timeline.min.js'></script>
<!-- /script-player -->
<title>Transcript-Editing</title>
</head>
<body>
<!-- Transcript Container -->
<div id="editor-container">
<div id="navbar">
<nav>
<ul>
</ul>
</nav>
</div>
<div class="transcript-container-wrapper">
<div class="transcript-controls">
<button id="edit-transcript", onclick="editTranscript()">Edit</button>
<button id="save-transcript", onclick="saveTranscript()">Save</button>
<button id="delete-transcript", onclick="deleteTranscript()">delete</button>
</div>
<div class="transcript-container">
<div class="transcript-header">
<p></p>
</div>
<!-- Transcript -->
<div id = "transcript">
</div>
</div>
</div>
<!-- Video -->
<!-- Timeline -->
<div class="video-container">
<div class="header">
<h1>Plugin timeline</h1>
</div>
<div class="content">
<div class="demo">
<div >
<div id="defaultPlayer"></div>
</div>
<div id="amalia-timeline" style="height: 265px;"></div>
<script>
$( function () {
$( "#defaultPlayer" ).mediaPlayer( {
autoplay: false,
src: 'static/timeline/samples-data/examples/vid/amalia01.mp4',
controlBar: {
sticky: true
},
plugins: {
dataServices: [
'static/timeline/samples-data/examples/json/amalia01-events.json',
'static/timeline/samples-data/examples/json/amalia01-kf.json',
'static/timeline/samples-data/examples/json/amalia01-ball.json'
],
list: [
{
'className': 'fr.ina.amalia.player.plugins.TimelinePlugin',
'container': '#amalia-timeline',
'parameters': {
listOfLines: [
/*
{
title: 'Events',
type: 'cuepoint',
metadataId: 'events-amalia01',
color: '#3CF',
pointNav: true
},
{
title: 'Ball moving up',
type: 'segment',
metadataId: 'ball-amalia01',
color: '#F00'
},
*/
{
title: 'Keyframes every 2s',
type: 'image',
metadataId: 'kf-amalia01',
pointNav: true,
editable: true
}
],
editingMode: true
}
}
]
}
});
});
</script>
</div>
</div>
</div>
</div>
<script src= 'static/js/upload-video.js' ></script>
<script src= 'static/js/transcript-generation.js' ></script>
<script src= 'static/js/transcript-editing.js' ></script>
</body>