@eluvio/elv-player-js 1.0.68 → 1.0.71
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-lock.json +1 -1
- package/package.json +1 -1
- package/src/index.js +10 -1
- package/src/static/icons/media/Pause icon.svg +3 -6
- package/src/static/icons/media/Play icon.svg +2 -5
- package/src/static/icons/media/loop icon.svg +3 -3
- package/src/static/icons/media/shuffle icon.svg +4 -4
- package/src/static/stylesheets/player.scss +1 -1
package/package-lock.json
CHANGED
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -107,6 +107,7 @@ const DefaultParameters = {
|
|
|
107
107
|
loop: EluvioPlayerParameters.loop.OFF,
|
|
108
108
|
watermark: EluvioPlayerParameters.watermark.ON,
|
|
109
109
|
settings: EluvioPlayerParameters.settings.ON,
|
|
110
|
+
posterUrl: undefined,
|
|
110
111
|
className: undefined,
|
|
111
112
|
hlsjsOptions: undefined,
|
|
112
113
|
dashjsOptions: undefined,
|
|
@@ -245,6 +246,10 @@ export class EluvioPlayer {
|
|
|
245
246
|
}
|
|
246
247
|
|
|
247
248
|
async PosterUrl() {
|
|
249
|
+
if(this.playerOptions.posterUrl) {
|
|
250
|
+
return this.playerOptions.posterUrl;
|
|
251
|
+
}
|
|
252
|
+
|
|
248
253
|
const client = await this.Client();
|
|
249
254
|
|
|
250
255
|
try {
|
|
@@ -576,7 +581,6 @@ export class EluvioPlayer {
|
|
|
576
581
|
|
|
577
582
|
if(multiviewOptions.enabled) { controlsPromise.then(() => this.controls.InitializeMultiViewControls(multiviewOptions)); }
|
|
578
583
|
} else if(protocol === "hls") {
|
|
579
|
-
|
|
580
584
|
playoutUrl.removeQuery("authorization");
|
|
581
585
|
|
|
582
586
|
// Inject
|
|
@@ -723,6 +727,11 @@ export class EluvioPlayer {
|
|
|
723
727
|
}
|
|
724
728
|
|
|
725
729
|
this.RegisterVisibilityCallback();
|
|
730
|
+
|
|
731
|
+
if(this.__destroyed) {
|
|
732
|
+
// If Destroy was called during the initialization process, ensure that the player is properly destroyed
|
|
733
|
+
this.Destroy();
|
|
734
|
+
}
|
|
726
735
|
} catch (error) {
|
|
727
736
|
this.playerOptions.errorCallback(error);
|
|
728
737
|
|
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
<!-- Generator: Adobe Illustrator 26.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
3
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
4
|
viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve">
|
|
5
|
-
<
|
|
6
|
-
.st0{fill:#FFFFFF;}
|
|
7
|
-
</style>
|
|
8
|
-
<circle class="st0" cx="16" cy="16" r="16"/>
|
|
5
|
+
<circle cx="16" cy="16" r="16" fill="white"/>
|
|
9
6
|
<g>
|
|
10
|
-
<rect x="10.4" y="9" width="4.1" height="14.1"/>
|
|
11
|
-
<rect x="17.5" y="9" width="4.1" height="14.1"/>
|
|
7
|
+
<rect x="10.4" y="9" width="4.1" height="14.1" fill="black"/>
|
|
8
|
+
<rect x="17.5" y="9" width="4.1" height="14.1" fill="black"/>
|
|
12
9
|
</g>
|
|
13
10
|
</svg>
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
<!-- Generator: Adobe Illustrator 26.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
3
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
4
|
viewBox="0 0 32 32" style="enable-background:new 0 0 32 32;" xml:space="preserve">
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
</style>
|
|
8
|
-
<circle class="st0" cx="16" cy="16" r="16"/>
|
|
9
|
-
<path d="M22.8,16l-11.6,7V9L22.8,16z"/>
|
|
5
|
+
<circle cx="16" cy="16" r="16" fill="white"/>
|
|
6
|
+
<path d="M22.8,16l-11.6,7V9L22.8,16z" fill="black"/>
|
|
10
7
|
</svg>
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
4
|
viewBox="0 0 18.6 15.7" style="enable-background:new 0 0 18.6 15.7;" xml:space="preserve">
|
|
5
5
|
<style type="text/css">
|
|
6
|
-
.
|
|
6
|
+
.__st-loop{fill:none;stroke:#000000;stroke-miterlimit:10;}
|
|
7
7
|
</style>
|
|
8
|
-
<path class="
|
|
8
|
+
<path class="__st-loop" d="M0.9,9L0.9,9c0-3.5,2.8-6.3,6.3-6.3h5.9"/>
|
|
9
9
|
<polygon points="17.7,2.7 13.1,0 13.1,5.4 "/>
|
|
10
|
-
<path class="
|
|
10
|
+
<path class="__st-loop" d="M17.7,6.7L17.7,6.7c0,3.5-2.8,6.3-6.3,6.3H5.5"/>
|
|
11
11
|
<polygon points="0.9,13 5.5,15.7 5.5,10.4 "/>
|
|
12
12
|
</svg>
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
4
|
viewBox="0 0 18.6 15.7" style="enable-background:new 0 0 18.6 15.7;" xml:space="preserve">
|
|
5
5
|
<style type="text/css">
|
|
6
|
-
.
|
|
6
|
+
.__st-shuffle{fill:none;stroke:#000000;stroke-miterlimit:10;}
|
|
7
7
|
</style>
|
|
8
|
-
<path class="
|
|
9
|
-
<path class="
|
|
8
|
+
<path class="__st-shuffle" d="M10.1,10.2c1.4,1.9,3.3,2.9,5.3,2.9h1.9"/>
|
|
9
|
+
<path class="__st-shuffle" d="M0,2.7h1.2c2,0,3.9,1,5.3,2.9l0.1,0.2"/>
|
|
10
10
|
<polygon points="18.6,13.1 14,10.4 14,15.7 "/>
|
|
11
|
-
<path class="
|
|
11
|
+
<path class="__st-shuffle" d="M0,13.1h1.2c2,0,3.9-1,5.3-2.9l3.5-4.6c1.4-1.9,3.3-2.9,5.3-2.9h1.9"/>
|
|
12
12
|
<polygon points="18.6,2.7 14,0 14,5.3 "/>
|
|
13
13
|
</svg>
|