@eluvio/elv-player-js 1.0.97 → 1.0.98
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/index.js +12 -0
- package/src/static/stylesheets/player.scss +0 -11
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -373,6 +373,10 @@ export class EluvioPlayer {
|
|
|
373
373
|
|
|
374
374
|
this.Log("Destroying player");
|
|
375
375
|
|
|
376
|
+
if(this.video) {
|
|
377
|
+
this.video.pause();
|
|
378
|
+
}
|
|
379
|
+
|
|
376
380
|
if(this.player.destroy) {
|
|
377
381
|
this.player.destroy();
|
|
378
382
|
} else if(this.player.reset) {
|
|
@@ -582,6 +586,14 @@ export class EluvioPlayer {
|
|
|
582
586
|
|
|
583
587
|
let { protocol, drm, playoutUrl, drms, multiviewOptions } = await playoutOptionsPromise;
|
|
584
588
|
|
|
589
|
+
if(["fairplay", "sample-aes"].includes(drm)) {
|
|
590
|
+
// Switch to default controls if using fairplay or sample aes
|
|
591
|
+
if(this.playerOptions.controls !== EluvioPlayerParameters.controls.OFF) {
|
|
592
|
+
this.playerOptions.controls = EluvioPlayerParameters.controls.DEFAULT;
|
|
593
|
+
this.video.controls = true;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
585
597
|
this.controls = new PlayerControls({
|
|
586
598
|
target: this.target,
|
|
587
599
|
video: this.video,
|
|
@@ -463,18 +463,7 @@ $button-height: 35px;
|
|
|
463
463
|
|
|
464
464
|
&:fullscreen {
|
|
465
465
|
margin: 0;
|
|
466
|
-
max-height: unset;
|
|
467
|
-
max-width: unset;
|
|
468
|
-
min-height: 100vh;
|
|
469
|
-
min-width: 100vw;
|
|
470
466
|
padding: 0;
|
|
471
|
-
|
|
472
|
-
video {
|
|
473
|
-
max-height: unset;
|
|
474
|
-
max-width: unset;
|
|
475
|
-
min-height: 100%;
|
|
476
|
-
min-width: 100%;
|
|
477
|
-
}
|
|
478
467
|
}
|
|
479
468
|
|
|
480
469
|
&__ticket-modal {
|