@eluvio/elv-player-js 1.0.79 → 1.0.82
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 +1 -1
- package/src/PlayerControls.js +10 -10
- package/src/index.js +1 -1
- package/src/static/stylesheets/player.scss +2 -0
package/package.json
CHANGED
package/src/PlayerControls.js
CHANGED
|
@@ -305,16 +305,6 @@ class PlayerControls {
|
|
|
305
305
|
return;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
this.video.addEventListener("click", () => {
|
|
309
|
-
if(window.matchMedia("(hover: none)").matches) {
|
|
310
|
-
// Touch screen - don't start/stop on video click
|
|
311
|
-
return;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
clearTimeout(this.timeouts.playPause);
|
|
315
|
-
this.timeouts.playPause = setTimeout(() => this.video.paused ? this.video.play() : this.video.pause(), 200);
|
|
316
|
-
});
|
|
317
|
-
|
|
318
308
|
if(this.playerOptions.controls === EluvioPlayerParameters.controls.OFF) {
|
|
319
309
|
// Controls hidden but need to show volume controls
|
|
320
310
|
|
|
@@ -362,6 +352,16 @@ class PlayerControls {
|
|
|
362
352
|
return;
|
|
363
353
|
}
|
|
364
354
|
|
|
355
|
+
this.video.addEventListener("click", () => {
|
|
356
|
+
if(window.matchMedia("(hover: none)").matches) {
|
|
357
|
+
// Touch screen - don't start/stop on video click
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
clearTimeout(this.timeouts.playPause);
|
|
362
|
+
this.timeouts.playPause = setTimeout(() => this.video.paused ? this.video.play() : this.video.pause(), 200);
|
|
363
|
+
});
|
|
364
|
+
|
|
365
365
|
// Big play icon
|
|
366
366
|
this.bigPlayButton = CreateImageButton({
|
|
367
367
|
parent: this.target,
|
package/src/index.js
CHANGED
|
@@ -481,7 +481,7 @@ export class EluvioPlayer {
|
|
|
481
481
|
parent: this.target,
|
|
482
482
|
type: "video",
|
|
483
483
|
options: {
|
|
484
|
-
muted: [EluvioPlayerParameters.muted.
|
|
484
|
+
muted: [EluvioPlayerParameters.muted.ON, EluvioPlayerParameters.muted.WHEN_NOT_VISIBLE].includes(this.playerOptions.muted),
|
|
485
485
|
controls: this.playerOptions.controls === EluvioPlayerParameters.controls.DEFAULT,
|
|
486
486
|
loop: this.playerOptions.loop === EluvioPlayerParameters.loop.ON
|
|
487
487
|
},
|
|
@@ -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;
|