videojs_rails 4.5.2 → 4.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/videojs_rails/version.rb +1 -1
- data/readme.md +21 -0
- data/vendor/assets/fonts/vjs.eot +0 -0
- data/vendor/assets/fonts/vjs.svg +23 -60
- data/vendor/assets/fonts/vjs.ttf +0 -0
- data/vendor/assets/fonts/vjs.woff +0 -0
- data/vendor/assets/javascripts/video.js.erb +921 -275
- data/vendor/assets/stylesheets/video-js.css.erb +136 -2
- metadata +6 -7
- data/vendor/assets/images/video-js.png +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
Video.js Default Styles (http://videojs.com)
|
3
|
-
Version 4.
|
3
|
+
Version 4.6.1
|
4
4
|
Create your own skin at http://designer.videojs.com
|
5
5
|
*/
|
6
6
|
/* SKIN
|
@@ -18,7 +18,7 @@ e.g. <video class="video-js my-skin-name">
|
|
18
18
|
The control icons are from a custom font. Each icon corresponds to a character
|
19
19
|
(e.g. "\e001"). Font icons allow for easy scaling and coloring of icons.
|
20
20
|
*/
|
21
|
-
@font-face{
|
21
|
+
@font-face {
|
22
22
|
font-family: 'VideoJS';
|
23
23
|
src: url('<%= asset_path('vjs.eot') %>');
|
24
24
|
src: url('<%= asset_path('vjs.eot?#iefix') %>') format('embedded-opentype'),
|
@@ -121,6 +121,10 @@ The default control bar that is a container for most of the controls.
|
|
121
121
|
.vjs-default-skin.vjs-using-native-controls .vjs-control-bar {
|
122
122
|
display: none;
|
123
123
|
}
|
124
|
+
/* The control bar shouldn't show after an error */
|
125
|
+
.vjs-default-skin.vjs-error .vjs-control-bar {
|
126
|
+
display: none;
|
127
|
+
}
|
124
128
|
/* IE8 is flakey with fonts, and you have to change the actual content to force
|
125
129
|
fonts to show/hide properly.
|
126
130
|
- "\9" IE8 hack didn't work for this
|
@@ -191,6 +195,25 @@ fonts to show/hide properly.
|
|
191
195
|
.vjs-default-skin.vjs-playing .vjs-play-control:before {
|
192
196
|
content: "\e002";
|
193
197
|
}
|
198
|
+
/* Playback toggle
|
199
|
+
--------------------------------------------------------------------------------
|
200
|
+
*/
|
201
|
+
.vjs-default-skin .vjs-playback-rate .vjs-playback-rate-value {
|
202
|
+
font-size: 1.5em;
|
203
|
+
line-height: 2;
|
204
|
+
position: absolute;
|
205
|
+
top: 0;
|
206
|
+
left: 0;
|
207
|
+
width: 100%;
|
208
|
+
height: 100%;
|
209
|
+
text-align: center;
|
210
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
|
211
|
+
}
|
212
|
+
.vjs-default-skin .vjs-playback-rate.vjs-menu-button .vjs-menu .vjs-menu-content {
|
213
|
+
width: 4em;
|
214
|
+
left: -2em;
|
215
|
+
list-style: none;
|
216
|
+
}
|
194
217
|
/* Volume/Mute
|
195
218
|
-------------------------------------------------------------------------------- */
|
196
219
|
.vjs-default-skin .vjs-mute-control,
|
@@ -231,11 +254,19 @@ fonts to show/hide properly.
|
|
231
254
|
top: 0;
|
232
255
|
left: 0;
|
233
256
|
height: 0.5em;
|
257
|
+
/* assuming volume starts at 1.0 */
|
258
|
+
|
259
|
+
width: 100%;
|
234
260
|
background: #66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat;
|
235
261
|
}
|
236
262
|
.vjs-default-skin .vjs-volume-bar .vjs-volume-handle {
|
237
263
|
width: 0.5em;
|
238
264
|
height: 0.5em;
|
265
|
+
/* Assumes volume starts at 1.0. If you change the size of the
|
266
|
+
handle relative to the volume bar, you'll need to update this value
|
267
|
+
too. */
|
268
|
+
|
269
|
+
left: 4.5em;
|
239
270
|
}
|
240
271
|
.vjs-default-skin .vjs-volume-handle:before {
|
241
272
|
font-size: 0.9em;
|
@@ -293,6 +324,9 @@ fonts to show/hide properly.
|
|
293
324
|
height: 100%;
|
294
325
|
margin: 0;
|
295
326
|
padding: 0;
|
327
|
+
/* updated by javascript during playback */
|
328
|
+
|
329
|
+
width: 0;
|
296
330
|
/* Needed for IE6 */
|
297
331
|
left: 0;
|
298
332
|
top: 0;
|
@@ -320,6 +354,25 @@ fonts to show/hide properly.
|
|
320
354
|
.vjs-default-skin .vjs-seek-handle:before {
|
321
355
|
padding-top: 0.1em /* Minor adjustment */;
|
322
356
|
}
|
357
|
+
/* Live Mode
|
358
|
+
--------------------------------------------------------------------------------
|
359
|
+
*/
|
360
|
+
.vjs-default-skin.vjs-live .vjs-time-controls,
|
361
|
+
.vjs-default-skin.vjs-live .vjs-time-divider,
|
362
|
+
.vjs-default-skin.vjs-live .vjs-progress-control {
|
363
|
+
display: none;
|
364
|
+
}
|
365
|
+
.vjs-default-skin.vjs-live .vjs-live-display {
|
366
|
+
display: block;
|
367
|
+
}
|
368
|
+
/* Live Display
|
369
|
+
--------------------------------------------------------------------------------
|
370
|
+
*/
|
371
|
+
.vjs-default-skin .vjs-live-display {
|
372
|
+
display: none;
|
373
|
+
font-size: 1em;
|
374
|
+
line-height: 3em;
|
375
|
+
}
|
323
376
|
/* Time Display
|
324
377
|
--------------------------------------------------------------------------------
|
325
378
|
*/
|
@@ -448,6 +501,52 @@ easily in the skin designer. http://designer.videojs.com/
|
|
448
501
|
width: 100%;
|
449
502
|
height: 100%;
|
450
503
|
}
|
504
|
+
.vjs-error .vjs-big-play-button {
|
505
|
+
display: none;
|
506
|
+
}
|
507
|
+
/* Error Display
|
508
|
+
--------------------------------------------------------------------------------
|
509
|
+
*/
|
510
|
+
.vjs-error-display {
|
511
|
+
display: none;
|
512
|
+
}
|
513
|
+
.vjs-error .vjs-error-display {
|
514
|
+
display: block;
|
515
|
+
position: absolute;
|
516
|
+
left: 0;
|
517
|
+
top: 0;
|
518
|
+
width: 100%;
|
519
|
+
height: 100%;
|
520
|
+
}
|
521
|
+
.vjs-error .vjs-error-display:before {
|
522
|
+
content: 'X';
|
523
|
+
font-family: Arial;
|
524
|
+
font-size: 4em;
|
525
|
+
color: #666666;
|
526
|
+
/* In order to center the play icon vertically we need to set the line height
|
527
|
+
to the same as the button height */
|
528
|
+
|
529
|
+
line-height: 1;
|
530
|
+
text-shadow: 0.05em 0.05em 0.1em #000;
|
531
|
+
text-align: center /* Needed for IE8 */;
|
532
|
+
vertical-align: middle;
|
533
|
+
position: absolute;
|
534
|
+
top: 50%;
|
535
|
+
margin-top: -0.5em;
|
536
|
+
width: 100%;
|
537
|
+
}
|
538
|
+
.vjs-error-display div {
|
539
|
+
position: absolute;
|
540
|
+
font-size: 1.4em;
|
541
|
+
text-align: center;
|
542
|
+
bottom: 1em;
|
543
|
+
right: 1em;
|
544
|
+
left: 1em;
|
545
|
+
}
|
546
|
+
.vjs-error-display a,
|
547
|
+
.vjs-error-display a:visited {
|
548
|
+
color: #F4A460;
|
549
|
+
}
|
451
550
|
/* Loading Spinner
|
452
551
|
--------------------------------------------------------------------------------
|
453
552
|
*/
|
@@ -469,6 +568,22 @@ easily in the skin designer. http://designer.videojs.com/
|
|
469
568
|
-o-animation: spin 1.5s infinite linear;
|
470
569
|
animation: spin 1.5s infinite linear;
|
471
570
|
}
|
571
|
+
/* Errors are unrecoverable without user interaction,
|
572
|
+
so hide the spinner in the case of an error */
|
573
|
+
.video-js.vjs-error .vjs-loading-spinner {
|
574
|
+
/* using !important flag because currently the loading spinner
|
575
|
+
uses hide()/show() instead of classes. The !important can be
|
576
|
+
removed when that's updated */
|
577
|
+
|
578
|
+
display: none !important;
|
579
|
+
/* ensure animation doesn't continue while hidden */
|
580
|
+
|
581
|
+
/* animation */
|
582
|
+
-webkit-animation: none;
|
583
|
+
-moz-animation: none;
|
584
|
+
-o-animation: none;
|
585
|
+
animation: none;
|
586
|
+
}
|
472
587
|
.vjs-default-skin .vjs-loading-spinner:before {
|
473
588
|
content: "\e01e";
|
474
589
|
font-family: VideoJS;
|
@@ -767,6 +882,25 @@ body.vjs-full-window {
|
|
767
882
|
opacity: 1;
|
768
883
|
visibility: visible;
|
769
884
|
}
|
885
|
+
/* In IE8 w/ no JavaScript (no HTML5 shim), the video tag doesn't register.
|
886
|
+
The .video-js classname on the video tag also isn't considered.
|
887
|
+
This optional paragraph inside the video tag can provide a message to users
|
888
|
+
about what's required to play video. */
|
889
|
+
.vjs-no-js {
|
890
|
+
padding: 20px;
|
891
|
+
color: #ccc;
|
892
|
+
background-color: #333;
|
893
|
+
font-size: 18px;
|
894
|
+
font-family: Arial, sans-serif;
|
895
|
+
text-align: center;
|
896
|
+
width: 300px;
|
897
|
+
height: 150px;
|
898
|
+
margin: 0px auto;
|
899
|
+
}
|
900
|
+
.vjs-no-js a,
|
901
|
+
.vjs-no-js a:visited {
|
902
|
+
color: #F4A460;
|
903
|
+
}
|
770
904
|
/* -----------------------------------------------------------------------------
|
771
905
|
The original source of this file lives at
|
772
906
|
https://github.com/videojs/video.js/blob/master/src/css/video-js.less */
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: videojs_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Behan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: HTML5 VideoJS plugin
|
14
14
|
email:
|
@@ -17,7 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
-
|
20
|
+
- .gitignore
|
21
21
|
- Gemfile
|
22
22
|
- Rakefile
|
23
23
|
- app/views/videojs_rails/_videojs_rails.html.erb
|
@@ -32,7 +32,6 @@ files:
|
|
32
32
|
- vendor/assets/fonts/vjs.svg
|
33
33
|
- vendor/assets/fonts/vjs.ttf
|
34
34
|
- vendor/assets/fonts/vjs.woff
|
35
|
-
- vendor/assets/images/video-js.png
|
36
35
|
- vendor/assets/javascripts/video.js.erb
|
37
36
|
- vendor/assets/stylesheets/video-js.css.erb
|
38
37
|
- videojs_rails.gemspec
|
@@ -45,17 +44,17 @@ require_paths:
|
|
45
44
|
- lib
|
46
45
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
46
|
requirements:
|
48
|
-
- -
|
47
|
+
- - ! '>='
|
49
48
|
- !ruby/object:Gem::Version
|
50
49
|
version: '0'
|
51
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
51
|
requirements:
|
53
|
-
- -
|
52
|
+
- - ! '>='
|
54
53
|
- !ruby/object:Gem::Version
|
55
54
|
version: '0'
|
56
55
|
requirements: []
|
57
56
|
rubyforge_project: videojs_rails
|
58
|
-
rubygems_version: 2.2.
|
57
|
+
rubygems_version: 2.2.2
|
59
58
|
signing_key:
|
60
59
|
specification_version: 4
|
61
60
|
summary: VideoJS plugin for Rails 3.1 Asset Pipeline
|
Binary file
|