@eluvio/elv-player-js 1.0.128 → 1.0.129

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "1.0.128",
3
+ "version": "1.0.129",
4
4
  "description": "![Eluvio Logo](src/static/images/Logo.png \"Eluvio Logo\")",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
package/src/index.js CHANGED
@@ -166,7 +166,7 @@ export class EluvioPlayer {
166
166
  this.customHLSOptions = parameters.playerOptions.hlsjsOptions;
167
167
  parameters.playerOptions.playerProfile = EluvioPlayerParameters.playerProfile.CUSTOM;
168
168
  }
169
- } catch(error) {
169
+ } catch (error) {
170
170
  this.Log(error, true);
171
171
  }
172
172
 
@@ -1136,6 +1136,13 @@ export class EluvioPlayer {
1136
1136
  }
1137
1137
 
1138
1138
  UpdateTextTracks({dashPlayer}={}) {
1139
+ const tracks = dashPlayer ?
1140
+ dashPlayer.getTracksFor("text") : Array.from(this.video.textTracks);
1141
+
1142
+ if(!tracks || tracks.length === 0) {
1143
+ return;
1144
+ }
1145
+
1139
1146
  this.controls.SetTextTrackControls({
1140
1147
  GetTextTracks: () => {
1141
1148
  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
- height: 15px;
481
+ align-items: center;
482
+ display: flex;
483
+ height: 100%;
486
484
  left: 20px;
487
485
  margin-right: 5px;
488
486
  position: absolute;