forked from danielcebrian/rangeslider-videojs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
393 lines (331 loc) · 13.1 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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
<!DOCTYPE html>
<html>
<head>
<!-- Standard Meta -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<!-- Site Properties -->
<title>VideoJS(5.x) RangeSlider</title>
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/reset.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/site.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/container.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/grid.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/header.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/image.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/menu.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/divider.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/dropdown.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/segment.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/button.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/list.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/icon.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/sidebar.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/transition.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/tab.css">
<link rel="stylesheet" type="text/css" href="demo/semantic/dist/components/input.css">
<link rel="stylesheet" type="text/css" href="demo/home.css">
<!-- videojs -->
<link rel="stylesheet" type="text/css" href="lib/video-js/5.8.7/video-js.css" />
<!-- rangeslider -->
<link rel="stylesheet" type="text/css" href="src/rangeslider.css" />
</head>
<body>
<!-- Following Menu -->
<div class="ui large top visible fixed hidden menu">
<div class="ui container">
<a class="active item">Home</a>
<a class="item" href="demo/index.html">Demo</a>
<!-- <a class="item">Company</a>
<a class="item">Careers</a> -->
<div class="right menu">
<div class="item">
<a class="ui button" href="https://github.com/acpmasquerade/rangeslider-videojs/">Github</a>
</div>
<!-- <div class="item">
<a class="ui primary button">Sign Up</a>
</div> -->
</div>
</div>
</div>
<!-- Sidebar Menu -->
<div class="ui vertical inverted sidebar menu">
<a class="active item">Home</a>
<a class="item" href="demo/index.html">Demo</a>
<!-- <a class="item">Company</a>
<a class="item">Careers</a>
<a class="item">Login</a>
<a class="item">Signup</a> -->
<a class="item" href="https://github.com/acpmasquerade/rangeslider-videojs/">Github</a>
</div>
<!-- Page Contents -->
<div class="pusher">
<div class="ui inverted vertical masthead center aligned segment">
<div class="ui container">
<div class="ui large secondary inverted pointing menu">
<a class="toc item">
<i class="sidebar icon"></i>
</a>
<a class="active item">Home</a>
<a class="item" href="demo/index.html">Demo</a>
<!-- <a class="item">Company</a> -->
<!-- <a class="item">Careers</a> -->
<div class="right item">
<a class="ui inverted button" href="https://github.com/acpmasquerade/rangeslider-videojs/">Github</a>
<!-- <a class="ui inverted button">Sign Up</a> -->
</div>
</div>
</div>
<div class="ui text container">
<h1 class="ui inverted header">
RangeSlider for VideoJS(5.x)
</h1>
<!-- <h2>Do whatever you want when you want to.</h2> -->
<!-- <div class="ui huge primary button">Github <i class="right arrow icon"></i></div> -->
</div>
</div>
<div class="ui vertical stripe segment">
<div class="ui middle aligned stackable grid container">
<div class="row">
<div class="fourteen wide column">
<div class="ui pointing secondary menu" id='tabbed-menu'>
<a class="item active" data-tab="install">Install</a>
<a class="item" data-tab="usage">Usage</a>
<a class="item" data-tab="api-methods">API Methods</a>
<a class="item" data-tab="events">Events</a>
<a class="item" data-tab="demo">Demo</a>
</div>
<div id='content-tabs'>
<div class="ui tab basic segment active" data-tab="install">
<h3 class="ui header">Install</h3>
<p>Add rangeslider.min.js and rangeslider.min.css files, just after videojs:</p>
<code>
<pre>
<html>
<head>
<!--Latest VideoJS-->
<link href="http://vjs.zencdn.net/4.1/video-js.css" rel="stylesheet">
<script src="lib/video.min.js"></script>
<!--RangeSlider Pluging-->
<script src="src/rangeslider.js"></script>
<link href="src/rangeslider.css" rel="stylesheet">
</head>
<body>
...
</pre>
</code>
</div>
<div class="ui tab basic segment" data-tab="usage">
<h3 class="ui header">Usage</h3>
<h4>HTML</h4>
<code>
<pre>
<video id="<strong style="text-decoration: underline;">vid1</strong>" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"
poster="http://video-js.zencoder.com/oceans-clip.png"
data-setup=''>
<source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
<source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
<source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />
</video>
</pre>
</code>
<h4>JS</h4>
<code>
<pre>
var options = {},
mplayer = videojs("<strong style="text-decoration: underline;">vid1</strong>"),
mplayer.rangeslider(options);
</pre>
</code>
<h4>With initial options</h4>
<code>
<pre>
var options = {locked:true, controlTime:false},
mplayer=videojs("<strong style="text-decoration: underline;">vid1</strong>"),
mplayer.rangeslider(options);
</pre>
</code>
</div>
<div class="ui tab basic segment" data-tab="api-methods">
<h3 class="ui header">API Methods</h3>
<div class="ui very relaxed divided list">
<div class='item'>
<div class='content'>
<h4>showSlider()</h4>
Show the Slider Bar Component
</div>
</div>
<div class='item'>
<div class='content'>
<h4>hideSlider()</h4>
Hide the Slider Bar Component
</div>
</div>
<div class='item'>
<div class='content'>
<h4>showSliderPanel()</h4>
Show the Panel above the arrow with the current position
</div>
</div>
<div class='item'>
<div class='content'>
<h4>hideSliderPanel()</h4>
Hide the Panel above the arrow with the current position
</div>
</div>
<div class='item'>
<div class='content'>
<h4>showControlTime()</h4>
Show the panel to edit the time for the start and end arrows
</div>
</div>
<div class='item'>
<div class='content'>
<h4>hideControlTime()</h4>
Hide the panel to edit the time for the start and end arrows
</div>
</div>
<div class='item'>
<div class='content'>
<h4>lockSlider()</h4>
Lock the Slider bar and it will not be possible to change the arrow positions
</div>
</div>
<div class='item'>
<div class='content'>
<h4>unlockSlider()</h4>
Unlock the Slider bar and it will be possible to change the arrow positions
</div>
</div>
<div class='item'>
<div class='content'>
<h4>setValueSlider()</h4>
Set a values in seconds for the position of the arrows.
</div>
</div>
<div class='item'>
<div class='content'>
<h4>playBetween(start, end)</h4>
The video will be played in a selected section. It is necessary to enter the start and end second.
</div>
</div>
<div class='item'>
<div class='content'>
<h4>loopBetween(start, end)</h4>
The video will be looped in a selected section. It is necessary to enter the start and end second.
</div>
</div>
<div class='item'>
<div class='content'>
<h4>getValueSlider()</h4>
Get the Values of the arrows in second.
</div>
</div>
</div>
</div>
<div class="ui tab basic segment" data-tab="events">
<h3 class="ui header">Events</h3>
<div class="ui very relaxed divided list">
<div class="item">
<div class="content">
<h4>loadedRangeSlider</h4>
Fired when the plugin has been loaded
</div>
</div>
<div class="item">
<div class="content">
<h4>sliderchange</h4>
Fired when the values of slider have changed
<pre>
mplayer.on("sliderchange",function() {
var values = mplayer.getValueSlider();
...
});</pre>
</div>
</div>
</div>
</div>
<div class="ui tab basic segment" data-tab="demo">
<div class="ui segment">
<video id="preview-player" class="video-js vjs-default-skin" controls preload="auto" poster="http://vjs.zencdn.net/v/oceans.png">
<source src="http://vjs.zencdn.net/v/oceans.mp4" type='video/mp4'>
<source src="http://vjs.zencdn.net/v/oceans.webm" type='video/webm'>
<source src="http://vjs.zencdn.net/v/oceans.ogv" type='video/ogg'>
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
</video>
</div>
<div class="ui segment">
<h4>Actions</h4>
<div class="ui button" onClick="showhide()">Show/Hide RS</div>
<div class="ui button" onClick="lockunlock()">Lock/Unlock RS</div>
<div class="ui button" onClick="showhidePanel()">show/hide Panel</div>
<div class="ui button" onClick="showhideControlTime()">show/hide ControlTime</div>
</div>
<div class="ui segment">
<h4>Select a section of the video</h4>
<div class="ui button" onClick="playBetween()">Play Between</div>
<div class="ui button" onClick="loopBetween()">Loop Between</div>
<div class="ui button" onClick="getValues()">Get Arrow Values</div>
</div>
<div class="ui segment">
Start (seconds):
<div class="ui input">
<input type="text" value="2" id="Start">
</div>
End (seconds):
<div class="ui input">
<input type="text" value="5" id="End">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ui inverted vertical footer segment">
<div class="ui container">
<div class="ui stackable inverted divided equal height stackable grid">
<div class="three wide column">
<h4 class="ui inverted header">Rangeslider plugin for VideoJS</h4>
<!-- <h4 class="ui inverted header">About</h4>
<div class="ui inverted link list">
<a href="#" class="item">Sitemap</a>
<a href="#" class="item">Contact Us</a>
<a href="#" class="item">Religious Ceremonies</a>
<a href="#" class="item">Gazebo Plans</a>
</div> -->
</div>
<div class="seven wide column">
<h4 class="ui inverted header">About VideoJS</h4>
<p>
Video.js is a JavaScript and CSS library that makes it easier to work with and build on HTML5 video. This is also known as an HTML5 Video Player.
<div class="ui inverted link list">
<a href="http://videojs.com" class="item">Explore VideoJS</a>
<a href="http://docs.videojs.com" class="item">VideoJS Documentation</a>
</div>
</p>
<!-- <div class="ui inverted link list">
<a href="#" class="item">Banana Pre-Order</a>
<a href="#" class="item">DNA FAQ</a>
<a href="#" class="item">How To Access</a>
<a href="#" class="item">Favorite X-Men</a>
</div> -->
</div>
</div>
</div>
</div>
</div> <!-- pusher -->
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script src="demo/semantic/dist/components/visibility.js"></script>
<script src="demo/semantic/dist/components/sidebar.js"></script>
<script src="demo/semantic/dist/components/transition.js"></script>
<script src="demo/semantic/dist/components/tab.js"></script>
<script src="demo/home.js" type="text/javascript"></script>
<!-- videojs -->
<script src="lib/video-js/5.8.7/video.js"></script>
<!-- rangeslider -->
<script src="src/rangeslider.js"></script>
<script src="demo/demo.js"></script>
</body>
</html>