@eluvio/elv-player-js 1.0.98 → 1.0.99
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 +7 -15
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -508,6 +508,13 @@ export class EluvioPlayer {
|
|
|
508
508
|
|
|
509
509
|
this.video.setAttribute("playsinline", "playsinline");
|
|
510
510
|
|
|
511
|
+
this.controls = new PlayerControls({
|
|
512
|
+
target: this.target,
|
|
513
|
+
video: this.video,
|
|
514
|
+
playerOptions: this.playerOptions,
|
|
515
|
+
className: this.playerOptions.controlsClassName
|
|
516
|
+
});
|
|
517
|
+
|
|
511
518
|
if(restartParameters) {
|
|
512
519
|
this.video.addEventListener("loadedmetadata", () => {
|
|
513
520
|
this.video.volume = restartParameters.volume;
|
|
@@ -586,21 +593,6 @@ export class EluvioPlayer {
|
|
|
586
593
|
|
|
587
594
|
let { protocol, drm, playoutUrl, drms, multiviewOptions } = await playoutOptionsPromise;
|
|
588
595
|
|
|
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
|
-
|
|
597
|
-
this.controls = new PlayerControls({
|
|
598
|
-
target: this.target,
|
|
599
|
-
video: this.video,
|
|
600
|
-
playerOptions: this.playerOptions,
|
|
601
|
-
className: this.playerOptions.controlsClassName
|
|
602
|
-
});
|
|
603
|
-
|
|
604
596
|
this.PosterUrl().then(posterUrl => this.controls.SetPosterUrl(posterUrl));
|
|
605
597
|
|
|
606
598
|
multiviewOptions.target = this.target;
|