mediaelement_rails 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/app/assets/images/mediaelement_rails/bigplay.fw.png +0 -0
- data/app/assets/images/mediaelement_rails/bigplay.svg +14 -1
- data/app/assets/images/mediaelement_rails/controls.fw.png +0 -0
- data/app/assets/images/mediaelement_rails/skipback.png +0 -0
- data/app/assets/javascripts/mediaelement_rails/mediaelement.js +84 -99
- data/app/assets/javascripts/mediaelement_rails/mediaelementplayer.js +661 -286
- data/app/assets/plugins/mediaelement_rails/flashmediaelement-cdn.swf +0 -0
- data/app/assets/plugins/mediaelement_rails/flashmediaelement.swf +0 -0
- data/app/assets/plugins/mediaelement_rails/silverlightmediaelement.xap +0 -0
- data/app/assets/stylesheets/mediaelement_rails/mediaelementplayer.css.erb +143 -32
- data/lib/mediaelement_rails/version.rb +1 -1
- metadata +6 -3
Binary file
|
Binary file
|
Binary file
|
@@ -1,3 +1,13 @@
|
|
1
|
+
.mejs-offscreen{
|
2
|
+
/* Accessibility: hide screen reader texts (and prefer "top" for RTL languages). */
|
3
|
+
position: absolute !important;
|
4
|
+
top: -10000px;
|
5
|
+
left: -10000px;
|
6
|
+
overflow: hidden;
|
7
|
+
width: 1px;
|
8
|
+
height: 1px;
|
9
|
+
}
|
10
|
+
|
1
11
|
.mejs-container {
|
2
12
|
position: relative;
|
3
13
|
background: #000;
|
@@ -97,7 +107,7 @@
|
|
97
107
|
background: url(<%= asset_path "mediaelement_rails/bigplay.svg" %>) no-repeat;
|
98
108
|
}
|
99
109
|
|
100
|
-
.no-svg .mejs-overlay-button {
|
110
|
+
.no-svg .mejs-overlay-button {
|
101
111
|
background-image: url(<%= asset_path "mediaelement_rails/bigplay.png" %>);
|
102
112
|
}
|
103
113
|
|
@@ -143,11 +153,11 @@
|
|
143
153
|
background: url(<%= asset_path "mediaelement_rails/background.png" %>);
|
144
154
|
background: rgba(0, 0, 0, 0.7);
|
145
155
|
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(50,50,50,0.7)), to(rgba(0,0,0,0.7)));
|
146
|
-
background: -webkit-linear-gradient(top, rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
156
|
+
background: -webkit-linear-gradient(top, rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
147
157
|
background: -moz-linear-gradient(top, rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
148
|
-
background: -o-linear-gradient(top, rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
149
|
-
background: -ms-linear-gradient(top, rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
150
|
-
background: linear-gradient(rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
158
|
+
background: -o-linear-gradient(top, rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
159
|
+
background: -ms-linear-gradient(top, rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
160
|
+
background: linear-gradient(rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
151
161
|
height: 30px;
|
152
162
|
width: 100%;
|
153
163
|
}
|
@@ -181,11 +191,11 @@
|
|
181
191
|
background: transparent url(<%= asset_path "mediaelement_rails/controls.svg" %>) no-repeat;
|
182
192
|
}
|
183
193
|
|
184
|
-
.no-svg .mejs-controls .mejs-button button {
|
194
|
+
.no-svg .mejs-controls .mejs-button button {
|
185
195
|
background-image: url(<%= asset_path "mediaelement_rails/controls.png" %>);
|
186
196
|
}
|
187
197
|
|
188
|
-
/* :focus for accessibility */
|
198
|
+
/* :focus for accessibility */
|
189
199
|
.mejs-controls .mejs-button button:focus {
|
190
200
|
outline: dotted 1px #999;
|
191
201
|
}
|
@@ -198,7 +208,7 @@
|
|
198
208
|
display: block;
|
199
209
|
height: 17px;
|
200
210
|
width: auto;
|
201
|
-
padding:
|
211
|
+
padding: 10px 3px 0 3px ;
|
202
212
|
overflow: hidden;
|
203
213
|
text-align: center;
|
204
214
|
-moz-box-sizing: content-box;
|
@@ -206,7 +216,7 @@
|
|
206
216
|
box-sizing: content-box;
|
207
217
|
}
|
208
218
|
|
209
|
-
.mejs-container .mejs-controls .mejs-time
|
219
|
+
.mejs-container .mejs-controls .mejs-time a {
|
210
220
|
color: #fff;
|
211
221
|
font-size: 11px;
|
212
222
|
line-height: 12px;
|
@@ -238,7 +248,7 @@
|
|
238
248
|
padding-top: 5px;
|
239
249
|
}
|
240
250
|
|
241
|
-
.mejs-controls .mejs-time-rail span {
|
251
|
+
.mejs-controls .mejs-time-rail span, .mejs-controls .mejs-time-rail a {
|
242
252
|
display: block;
|
243
253
|
position: absolute;
|
244
254
|
width: 180px;
|
@@ -254,7 +264,7 @@
|
|
254
264
|
background: #333;
|
255
265
|
background: rgba(50,50,50,0.8);
|
256
266
|
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(30,30,30,0.8)), to(rgba(60,60,60,0.8)));
|
257
|
-
background: -webkit-linear-gradient(top, rgba(30,30,30,0.8), rgba(60,60,60,0.8));
|
267
|
+
background: -webkit-linear-gradient(top, rgba(30,30,30,0.8), rgba(60,60,60,0.8));
|
258
268
|
background: -moz-linear-gradient(top, rgba(30,30,30,0.8), rgba(60,60,60,0.8));
|
259
269
|
background: -o-linear-gradient(top, rgba(30,30,30,0.8), rgba(60,60,60,0.8));
|
260
270
|
background: -ms-linear-gradient(top, rgba(30,30,30,0.8), rgba(60,60,60,0.8));
|
@@ -289,7 +299,7 @@
|
|
289
299
|
.mejs-controls .mejs-time-rail .mejs-time-loaded {
|
290
300
|
background: #3caac8;
|
291
301
|
background: rgba(60,170,200,0.8);
|
292
|
-
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(44,124,145,0.8)), to(rgba(78,183,212,0.8)));
|
302
|
+
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(44,124,145,0.8)), to(rgba(78,183,212,0.8)));
|
293
303
|
background: -webkit-linear-gradient(top, rgba(44,124,145,0.8), rgba(78,183,212,0.8));
|
294
304
|
background: -moz-linear-gradient(top, rgba(44,124,145,0.8), rgba(78,183,212,0.8));
|
295
305
|
background: -o-linear-gradient(top, rgba(44,124,145,0.8), rgba(78,183,212,0.8));
|
@@ -303,7 +313,7 @@
|
|
303
313
|
background: rgba(255,255,255,0.8);
|
304
314
|
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(255,255,255,0.9)), to(rgba(200,200,200,0.8)));
|
305
315
|
background: -webkit-linear-gradient(top, rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
306
|
-
background: -moz-linear-gradient(top, rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
316
|
+
background: -moz-linear-gradient(top, rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
307
317
|
background: -o-linear-gradient(top, rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
308
318
|
background: -ms-linear-gradient(top, rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
309
319
|
background: linear-gradient(rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
@@ -473,10 +483,13 @@
|
|
473
483
|
}
|
474
484
|
|
475
485
|
/* horizontal version */
|
476
|
-
.mejs-controls
|
486
|
+
.mejs-controls a.mejs-horizontal-volume-slider {
|
477
487
|
height: 26px;
|
478
|
-
width:
|
488
|
+
width: 56px;
|
479
489
|
position: relative;
|
490
|
+
display: block;
|
491
|
+
float: left;
|
492
|
+
vertical-align: middle;
|
480
493
|
}
|
481
494
|
|
482
495
|
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
|
@@ -490,11 +503,11 @@
|
|
490
503
|
font-size: 1px;
|
491
504
|
-webkit-border-radius: 2px;
|
492
505
|
-moz-border-radius: 2px;
|
493
|
-
border-radius: 2px;
|
506
|
+
border-radius: 2px;
|
494
507
|
background: #333;
|
495
508
|
background: rgba(50,50,50,0.8);
|
496
509
|
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(30,30,30,0.8)), to(rgba(60,60,60,0.8)));
|
497
|
-
background: -webkit-linear-gradient(top, rgba(30,30,30,0.8), rgba(60,60,60,0.8));
|
510
|
+
background: -webkit-linear-gradient(top, rgba(30,30,30,0.8), rgba(60,60,60,0.8));
|
498
511
|
background: -moz-linear-gradient(top, rgba(30,30,30,0.8), rgba(60,60,60,0.8));
|
499
512
|
background: -o-linear-gradient(top, rgba(30,30,30,0.8), rgba(60,60,60,0.8));
|
500
513
|
background: -ms-linear-gradient(top, rgba(30,30,30,0.8), rgba(60,60,60,0.8));
|
@@ -517,7 +530,7 @@
|
|
517
530
|
background: rgba(255,255,255,0.8);
|
518
531
|
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(255,255,255,0.9)), to(rgba(200,200,200,0.8)));
|
519
532
|
background: -webkit-linear-gradient(top, rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
520
|
-
background: -moz-linear-gradient(top, rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
533
|
+
background: -moz-linear-gradient(top, rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
521
534
|
background: -o-linear-gradient(top, rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
522
535
|
background: -ms-linear-gradient(top, rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
523
536
|
background: linear-gradient(rgba(255,255,255,0.9), rgba(200,200,200,0.8));
|
@@ -541,13 +554,13 @@
|
|
541
554
|
visibility: hidden;
|
542
555
|
position: absolute;
|
543
556
|
bottom: 26px;
|
544
|
-
right: -
|
545
|
-
width:
|
557
|
+
right: -51px;
|
558
|
+
width: 85px;
|
546
559
|
height: 100px;
|
547
560
|
background: url(<%= asset_path "mediaelement_rails/background.png" %>);
|
548
561
|
background: rgba(50,50,50,0.7);
|
549
562
|
border: solid 1px transparent;
|
550
|
-
padding: 10px;
|
563
|
+
padding: 10px 10px 0 10px;
|
551
564
|
overflow: hidden;
|
552
565
|
-webkit-border-radius: 0;
|
553
566
|
-moz-border-radius: 0;
|
@@ -584,7 +597,7 @@
|
|
584
597
|
}
|
585
598
|
|
586
599
|
.mejs-controls .mejs-captions-button .mejs-captions-selector ul li label {
|
587
|
-
width:
|
600
|
+
width: 55px;
|
588
601
|
float: left;
|
589
602
|
padding: 4px 0 0 0;
|
590
603
|
line-height: 15px;
|
@@ -616,8 +629,8 @@
|
|
616
629
|
background: -moz-linear-gradient(top, rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
617
630
|
background: -o-linear-gradient(top, rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
618
631
|
background: -ms-linear-gradient(top, rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
619
|
-
background: linear-gradient(rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
620
|
-
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr=#323232,endColorstr=#000000);
|
632
|
+
background: linear-gradient(rgba(50,50,50,0.7), rgba(0,0,0,0.7));
|
633
|
+
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr=#323232,endColorstr=#000000);
|
621
634
|
overflow: hidden;
|
622
635
|
border: 0;
|
623
636
|
}
|
@@ -645,7 +658,7 @@
|
|
645
658
|
background: -o-linear-gradient(top, rgba(102,102,102,0.7), rgba(50,50,50,0.6));
|
646
659
|
background: -ms-linear-gradient(top, rgba(102,102,102,0.7), rgba(50,50,50,0.6));
|
647
660
|
background: linear-gradient(rgba(102,102,102,0.7), rgba(50,50,50,0.6));
|
648
|
-
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr=#666666,endColorstr=#323232);
|
661
|
+
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr=#666666,endColorstr=#323232);
|
649
662
|
}
|
650
663
|
|
651
664
|
.mejs-chapters .mejs-chapter .mejs-chapter-block .ch-title {
|
@@ -672,8 +685,8 @@
|
|
672
685
|
bottom: 0;
|
673
686
|
left: 0;
|
674
687
|
text-align:center;
|
675
|
-
line-height:
|
676
|
-
font-size:
|
688
|
+
line-height: 20px;
|
689
|
+
font-size: 16px;
|
677
690
|
color: #fff;
|
678
691
|
}
|
679
692
|
|
@@ -695,14 +708,14 @@
|
|
695
708
|
}
|
696
709
|
|
697
710
|
.mejs-captions-position-hover {
|
698
|
-
bottom:
|
711
|
+
bottom: 35px;
|
699
712
|
}
|
700
713
|
|
701
714
|
.mejs-captions-text {
|
702
715
|
padding: 3px 5px;
|
703
716
|
background: url(<%= asset_path "mediaelement_rails/background.png" %>);
|
704
|
-
background: rgba(20, 20, 20, 0.
|
705
|
-
|
717
|
+
background: rgba(20, 20, 20, 0.5);
|
718
|
+
white-space: pre-wrap;
|
706
719
|
}
|
707
720
|
/* End: Track (Captions and Chapters) */
|
708
721
|
|
@@ -766,7 +779,7 @@
|
|
766
779
|
height: 1px;
|
767
780
|
font-size: 0;
|
768
781
|
margin: 5px 6px;
|
769
|
-
background: #333;
|
782
|
+
background: #333;
|
770
783
|
}
|
771
784
|
|
772
785
|
.mejs-contextmenu .mejs-contextmenu-item {
|
@@ -774,7 +787,7 @@
|
|
774
787
|
font-size: 12px;
|
775
788
|
padding: 4px 6px;
|
776
789
|
cursor: pointer;
|
777
|
-
color: #333;
|
790
|
+
color: #333;
|
778
791
|
}
|
779
792
|
.mejs-contextmenu .mejs-contextmenu-item:hover {
|
780
793
|
background: #2C7C91;
|
@@ -868,3 +881,101 @@
|
|
868
881
|
cursor: pointer;
|
869
882
|
}
|
870
883
|
/* End: Postroll */
|
884
|
+
|
885
|
+
|
886
|
+
/* Start: Speed */
|
887
|
+
div.mejs-speed-button {
|
888
|
+
width: 46px !important;
|
889
|
+
position: relative;
|
890
|
+
}
|
891
|
+
|
892
|
+
.mejs-controls .mejs-button.mejs-speed-button button {
|
893
|
+
background: transparent;
|
894
|
+
width: 36px;
|
895
|
+
font-size: 11px;
|
896
|
+
line-height: normal;
|
897
|
+
color: #ffffff;
|
898
|
+
}
|
899
|
+
|
900
|
+
.mejs-controls .mejs-speed-button .mejs-speed-selector {
|
901
|
+
visibility: hidden;
|
902
|
+
position: absolute;
|
903
|
+
top: -100px;
|
904
|
+
left: -10px;
|
905
|
+
width: 60px;
|
906
|
+
height: 100px;
|
907
|
+
background: url(<%= asset_path "mediaelement_rails/background.png" %>);
|
908
|
+
background: rgba(50, 50, 50, 0.7);
|
909
|
+
border: solid 1px transparent;
|
910
|
+
padding: 0;
|
911
|
+
overflow: hidden;
|
912
|
+
-webkit-border-radius: 0;
|
913
|
+
-moz-border-radius: 0;
|
914
|
+
border-radius: 0;
|
915
|
+
}
|
916
|
+
|
917
|
+
.mejs-controls .mejs-speed-button:hover > .mejs-speed-selector {
|
918
|
+
visibility: visible;
|
919
|
+
}
|
920
|
+
|
921
|
+
.mejs-controls .mejs-speed-button .mejs-speed-selector ul li label.mejs-speed-selected {
|
922
|
+
color: rgba(33, 248, 248, 1);
|
923
|
+
}
|
924
|
+
|
925
|
+
.mejs-controls .mejs-speed-button .mejs-speed-selector ul {
|
926
|
+
margin: 0;
|
927
|
+
padding: 0;
|
928
|
+
display: block;
|
929
|
+
list-style-type: none !important;
|
930
|
+
overflow: hidden;
|
931
|
+
}
|
932
|
+
|
933
|
+
.mejs-controls .mejs-speed-button .mejs-speed-selector ul li {
|
934
|
+
margin: 0 0 6px 0;
|
935
|
+
padding: 0 10px;
|
936
|
+
list-style-type: none !important;
|
937
|
+
display: block;
|
938
|
+
color: #fff;
|
939
|
+
overflow: hidden;
|
940
|
+
}
|
941
|
+
|
942
|
+
.mejs-controls .mejs-speed-button .mejs-speed-selector ul li input {
|
943
|
+
clear: both;
|
944
|
+
float: left;
|
945
|
+
margin: 3px 3px 0 5px;
|
946
|
+
display: none;
|
947
|
+
}
|
948
|
+
|
949
|
+
.mejs-controls .mejs-speed-button .mejs-speed-selector ul li label {
|
950
|
+
width: 60px;
|
951
|
+
float: left;
|
952
|
+
padding: 4px 0 0 0;
|
953
|
+
line-height: 15px;
|
954
|
+
font-family: helvetica, arial;
|
955
|
+
font-size: 11.5px;
|
956
|
+
color: white;
|
957
|
+
margin-left: 5px;
|
958
|
+
cursor: pointer;
|
959
|
+
}
|
960
|
+
|
961
|
+
.mejs-controls .mejs-speed-button .mejs-speed-selector ul li:hover {
|
962
|
+
background-color: rgb(200, 200, 200) !important;
|
963
|
+
background-color: rgba(255,255,255,.4) !important;
|
964
|
+
}
|
965
|
+
/* End: Speed */
|
966
|
+
|
967
|
+
/* Start: Skip Back */
|
968
|
+
|
969
|
+
.mejs-controls .mejs-button.mejs-skip-back-button {
|
970
|
+
background: transparent url(<%= asset_path "mediaelement_rails/skipback.png" %>) no-repeat;
|
971
|
+
background-position: 3px 3px;
|
972
|
+
}
|
973
|
+
.mejs-controls .mejs-button.mejs-skip-back-button button {
|
974
|
+
background: transparent;
|
975
|
+
font-size: 9px;
|
976
|
+
line-height: normal;
|
977
|
+
color: #ffffff;
|
978
|
+
}
|
979
|
+
|
980
|
+
/* End: Skip Back */
|
981
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mediaelement_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Oleson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-05-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -140,14 +140,17 @@ files:
|
|
140
140
|
- README.md
|
141
141
|
- Rakefile
|
142
142
|
- app/assets/images/mediaelement_rails/background.png
|
143
|
+
- app/assets/images/mediaelement_rails/bigplay.fw.png
|
143
144
|
- app/assets/images/mediaelement_rails/bigplay.png
|
144
145
|
- app/assets/images/mediaelement_rails/bigplay.svg
|
145
146
|
- app/assets/images/mediaelement_rails/controls-ted.png
|
146
147
|
- app/assets/images/mediaelement_rails/controls-wmp-bg.png
|
147
148
|
- app/assets/images/mediaelement_rails/controls-wmp.png
|
149
|
+
- app/assets/images/mediaelement_rails/controls.fw.png
|
148
150
|
- app/assets/images/mediaelement_rails/controls.png
|
149
151
|
- app/assets/images/mediaelement_rails/controls.svg
|
150
152
|
- app/assets/images/mediaelement_rails/loading.gif
|
153
|
+
- app/assets/images/mediaelement_rails/skipback.png
|
151
154
|
- app/assets/javascripts/mediaelement_rails/index.js
|
152
155
|
- app/assets/javascripts/mediaelement_rails/mediaelement.js
|
153
156
|
- app/assets/javascripts/mediaelement_rails/mediaelementplayer.js
|
@@ -221,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
224
|
version: '0'
|
222
225
|
requirements: []
|
223
226
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.
|
227
|
+
rubygems_version: 2.4.6
|
225
228
|
signing_key:
|
226
229
|
specification_version: 4
|
227
230
|
summary: MediaElement.js for Rails
|