@eluvio/elv-player-js 1.0.81 → 1.0.84
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.
package/package.json
CHANGED
package/src/PlayerControls.js
CHANGED
|
@@ -300,12 +300,12 @@ class PlayerControls {
|
|
|
300
300
|
|
|
301
301
|
*/
|
|
302
302
|
|
|
303
|
-
if(
|
|
304
|
-
//
|
|
303
|
+
if([EluvioPlayerParameters.controls.DEFAULT, EluvioPlayerParameters.controls.OFF].includes(this.playerOptions.controls)) {
|
|
304
|
+
// Custom controls disabled
|
|
305
305
|
return;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
if(this.playerOptions.controls === EluvioPlayerParameters.controls.
|
|
308
|
+
if(this.playerOptions.controls === EluvioPlayerParameters.controls.OFF_WITH_VOLUME_TOGGLE) {
|
|
309
309
|
// Controls hidden but need to show volume controls
|
|
310
310
|
|
|
311
311
|
let controlsCreated = false;
|
|
@@ -769,10 +769,7 @@ class PlayerControls {
|
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
SetQualityControls({GetLevels, SetLevel}) {
|
|
772
|
-
if(
|
|
773
|
-
this.playerOptions.controls === EluvioPlayerParameters.controls.DEFAULT ||
|
|
774
|
-
this.playerOptions.controls === EluvioPlayerParameters.controls.OFF
|
|
775
|
-
) {
|
|
772
|
+
if([EluvioPlayerParameters.controls.OFF, EluvioPlayerParameters.controls.OFF_WITH_VOLUME_TOGGLE, EluvioPlayerParameters.controls.DEFAULT].includes(this.playerOptions.controls)) {
|
|
776
773
|
// Controls disabled
|
|
777
774
|
return;
|
|
778
775
|
}
|
package/src/index.js
CHANGED
|
@@ -142,6 +142,7 @@ $button-height: 35px;
|
|
|
142
142
|
object-fit: contain;
|
|
143
143
|
object-position: center;
|
|
144
144
|
width: 100%;
|
|
145
|
+
z-index: 1;
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
&__watermark {
|
|
@@ -162,6 +163,7 @@ $button-height: 35px;
|
|
|
162
163
|
position: absolute;
|
|
163
164
|
transition: opacity 0.25s linear;
|
|
164
165
|
width: max-content;
|
|
166
|
+
z-index: 10;
|
|
165
167
|
|
|
166
168
|
button {
|
|
167
169
|
background: $controls-color;
|
|
@@ -586,18 +588,15 @@ $button-height: 35px;
|
|
|
586
588
|
}
|
|
587
589
|
|
|
588
590
|
.eluvio-player__controls {
|
|
589
|
-
//height: CALC(#{$controls-height} * 0.65);
|
|
590
591
|
padding: 0 CALC(#{$controls-padding} * 0.5);
|
|
591
592
|
}
|
|
592
593
|
|
|
593
594
|
.eluvio-player__controls__button {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
min-width: CALC(#{$button-height} * 0.9);
|
|
600
|
-
}
|
|
595
|
+
height: CALC(#{$button-height} * 0.9);
|
|
596
|
+
max-height: CALC(#{$button-height} * 0.9);
|
|
597
|
+
max-width: CALC(#{$button-height} * 0.9);
|
|
598
|
+
min-height: CALC(#{$button-height} * 0.9);
|
|
599
|
+
min-width: CALC(#{$button-height} * 0.9);
|
|
601
600
|
}
|
|
602
601
|
|
|
603
602
|
.eluvio-player__controls__volume-container {
|