@eluvio/elv-player-js 1.0.128 → 1.0.130
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 +23 -1
- package/src/static/stylesheets/player.scss +4 -6
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -22,6 +22,7 @@ export const EluvioPlayerParameters = {
|
|
|
22
22
|
playerProfile: {
|
|
23
23
|
DEFAULT: "default",
|
|
24
24
|
LOW_LATENCY: "low_latency",
|
|
25
|
+
ULTRA_LOW_LATENCY: "ultra_low_latency",
|
|
25
26
|
CUSTOM: "custom"
|
|
26
27
|
},
|
|
27
28
|
drms: {
|
|
@@ -147,6 +148,20 @@ const PlayerProfiles = {
|
|
|
147
148
|
label: "Low Latency",
|
|
148
149
|
hlsSettings: Utils.LiveHLSJSSettings({lowLatency: true})
|
|
149
150
|
},
|
|
151
|
+
ultra_low_latency: {
|
|
152
|
+
label: "Ultra Low Latency",
|
|
153
|
+
hlsSettings: {
|
|
154
|
+
"capLevelToPlayerSize": false,
|
|
155
|
+
"enableWorker": true,
|
|
156
|
+
"lowLatencyMode": true,
|
|
157
|
+
"maxBufferLength": 4,
|
|
158
|
+
"backBufferLength": 4,
|
|
159
|
+
"liveSyncDuration": 4,
|
|
160
|
+
"liveMaxLatencyDuration": 5,
|
|
161
|
+
"liveDurationInfinity": false,
|
|
162
|
+
"highBufferWatchdogPeriod": 1
|
|
163
|
+
}
|
|
164
|
+
},
|
|
150
165
|
custom: {
|
|
151
166
|
label: "Custom",
|
|
152
167
|
hlsSettings: {}
|
|
@@ -166,7 +181,7 @@ export class EluvioPlayer {
|
|
|
166
181
|
this.customHLSOptions = parameters.playerOptions.hlsjsOptions;
|
|
167
182
|
parameters.playerOptions.playerProfile = EluvioPlayerParameters.playerProfile.CUSTOM;
|
|
168
183
|
}
|
|
169
|
-
} catch(error) {
|
|
184
|
+
} catch (error) {
|
|
170
185
|
this.Log(error, true);
|
|
171
186
|
}
|
|
172
187
|
|
|
@@ -1136,6 +1151,13 @@ export class EluvioPlayer {
|
|
|
1136
1151
|
}
|
|
1137
1152
|
|
|
1138
1153
|
UpdateTextTracks({dashPlayer}={}) {
|
|
1154
|
+
const tracks = dashPlayer ?
|
|
1155
|
+
dashPlayer.getTracksFor("text") : Array.from(this.video.textTracks);
|
|
1156
|
+
|
|
1157
|
+
if(!tracks || tracks.length === 0) {
|
|
1158
|
+
return;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1139
1161
|
this.controls.SetTextTrackControls({
|
|
1140
1162
|
GetTextTracks: () => {
|
|
1141
1163
|
const activeTrackIndex = dashPlayer ?
|
|
@@ -440,11 +440,6 @@ $button-height: 35px;
|
|
|
440
440
|
|
|
441
441
|
button {
|
|
442
442
|
border: 1px solid transparent;
|
|
443
|
-
|
|
444
|
-
&.eluvio-player__controls__settings-menu__close {
|
|
445
|
-
border: 1.5px solid $button-color;
|
|
446
|
-
border-radius: 100%;
|
|
447
|
-
}
|
|
448
443
|
}
|
|
449
444
|
|
|
450
445
|
&__close {
|
|
@@ -452,6 +447,7 @@ $button-height: 35px;
|
|
|
452
447
|
display: none;
|
|
453
448
|
height: 20px;
|
|
454
449
|
justify-content: center;
|
|
450
|
+
padding: 0;
|
|
455
451
|
position: absolute;
|
|
456
452
|
right: 20px;
|
|
457
453
|
top: 20px;
|
|
@@ -482,7 +478,9 @@ $button-height: 35px;
|
|
|
482
478
|
}
|
|
483
479
|
|
|
484
480
|
&-back__icon {
|
|
485
|
-
|
|
481
|
+
align-items: center;
|
|
482
|
+
display: flex;
|
|
483
|
+
height: 100%;
|
|
486
484
|
left: 20px;
|
|
487
485
|
margin-right: 5px;
|
|
488
486
|
position: absolute;
|