@latest-thinking/lt-player 1.0.5-h → 1.0.5-j

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": "@latest-thinking/lt-player",
3
- "version": "1.0.5-h",
3
+ "version": "1.0.5-j",
4
4
  "description": "LT player.",
5
5
  "main": "dist/js/lt-player-main.js",
6
6
  "module": "dist/js/lt-player-main.js",
@@ -79,24 +79,25 @@
79
79
  }
80
80
 
81
81
  .plyr .plyr__controls:not(:empty) ~ .plyr__captions {
82
- bottom: 0;
83
- top: 0;
84
- transform: translateY(78%) !important;
82
+ //opacity: 0;
83
+ //bottom: 0;
84
+ //top: 0;
85
+ transform: unset!important;
85
86
  color: $default-lt-player-white !important;
86
87
  }
87
88
 
88
89
  .plyr .plyr__controls-enable:not(:empty) ~ .plyr__captions {
89
- position: absolute !important;
90
- top: 0;
91
- bottom: 0;
92
- transform: translateY(10%) !important;
90
+ //position: absolute !important;
91
+ //top: 0;
92
+ //bottom: 0;
93
+ transform: unset!important;
93
94
  }
94
95
 
95
96
  .plyr .plyr__controls-enable-settings:not(:empty) ~ .plyr__captions {
96
- position: absolute !important;
97
- top: 0;
98
- bottom: 0;
99
- transform: translateY(10%) !important;
97
+ //position: absolute !important;
98
+ //top: 0;
99
+ //bottom: 0;
100
+ transform: unset!important;
100
101
  }
101
102
 
102
103
 
@@ -266,6 +266,8 @@
266
266
  min-width: 60px;
267
267
  height: 34px;
268
268
  margin-left: 10px;
269
+ margin-bottom: 0!important;
270
+ margin-top: 0!important;
269
271
  }
270
272
 
271
273
  &__input-switch {
@@ -66,7 +66,7 @@
66
66
 
67
67
  .lt-player-video-content {
68
68
  position: absolute;
69
- bottom: 9rem;
69
+ bottom: 11rem;
70
70
  text-align: left;
71
71
  display: flex;
72
72
  padding: 0 1.5rem;
@@ -185,11 +185,12 @@ export namespace LTPlayerControlsEvents {
185
185
 
186
186
 
187
187
  if (!playerControls.classList.contains('plyr__controls-enable')) {
188
- captions.classList.remove('on-controls-hover');
188
+ captions.classList.remove('d-none');
189
+ // captions.classList.remove('on-controls-hover');
189
190
  return;
190
191
  }
191
-
192
- captions.classList.add('on-controls-hover');
192
+ captions.classList.add('d-none');
193
+ // captions.classList.add('on-controls-hover');
193
194
 
194
195
  }
195
196
  showHide(instance: LTPlayer.LandscapeType | LTPlayer.PortraitType) {
@@ -200,7 +201,9 @@ export namespace LTPlayerControlsEvents {
200
201
 
201
202
 
202
203
  controls.addEventListener('mouseleave', function () {
203
- controls.classList.remove('plyr__controls-enable')
204
+ if (!controls.classList.contains('plyr__controls-enable-settings')) {
205
+ controls.classList.remove('plyr__controls-enable')
206
+ }
204
207
  })
205
208
  }
206
209
 
@@ -66,11 +66,11 @@ export class LTPlayerDesktopSettingsControllers implements SettingsControlsInter
66
66
 
67
67
  myRange.oninput = function() {
68
68
  player.speed = parseFloat(values[rangeInput.value]);
69
- myValue.innerHTML = values[rangeInput.value] + 'x';
69
+ myValue.innerHTML = values[rangeInput.value];
70
70
  };
71
71
 
72
72
  player.speed = parseFloat(String(values[0]));
73
- myValue.innerHTML = values[0] + 'x';
73
+ myValue.innerHTML = values[0];
74
74
  }
75
75
  initSaveButton() {
76
76