@latest-thinking/lt-player 1.1.0-p → 1.1.0-r

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.1.0-p",
3
+ "version": "1.1.0-r",
4
4
  "description": "LT player.",
5
5
  "main": "dist/js/lt-player-main.js",
6
6
  "module": "dist/js/lt-player-main.js",
@@ -32,3 +32,11 @@
32
32
  }
33
33
  }
34
34
  }
35
+
36
+ @container portrait (width < 319px) {
37
+ .lt-player-custom-captions {
38
+ span {
39
+ font-size: $lt-player-font-size-sm;
40
+ }
41
+ }
42
+ }
@@ -278,8 +278,24 @@ export namespace LTPlayerControlsEvents {
278
278
  commonInstance.showHideControls.showHideSeekBar(true, controls);
279
279
  commonInstance.showHideControls.showHideBottomControls(true, controls);
280
280
 
281
+ let timerText: NodeJS.Timeout = null;
282
+ let timerSeekBar: NodeJS.Timeout = null;
283
+ let timerBottomControls: NodeJS.Timeout = null;
284
+
281
285
  controls.addEventListener('mouseover', function () {
282
286
 
287
+ if (timerText) {
288
+ clearTimeout(timerText);
289
+ }
290
+
291
+ if (timerSeekBar) {
292
+ clearTimeout(timerSeekBar);
293
+ }
294
+
295
+ if (timerBottomControls) {
296
+ clearTimeout(timerBottomControls);
297
+ }
298
+
283
299
  if (instance.plyr.paused) {
284
300
  commonInstance.showHideControls.showHideOnPause(true, controls);
285
301
  return;
@@ -301,28 +317,27 @@ export namespace LTPlayerControlsEvents {
301
317
 
302
318
 
303
319
  controls.addEventListener('mouseleave', function () {
304
-
305
320
  if (instance.plyr.paused) {
306
321
  commonInstance.showHideControls.showHideOnPause(true, controls);
307
322
  return;
308
323
  }
309
324
 
310
325
  if (!instance.playerConfig.isPinTextControls()) {
311
- setTimeout(() => {
326
+ timerText = setTimeout(() => {
312
327
  commonInstance.showHideControls.showHideText(false, controls);
313
- }, 100)
328
+ }, 5000)
314
329
  }
315
330
 
316
331
  if (!instance.playerConfig.isPinSeekBarControls()) {
317
- setTimeout(() => {
332
+ timerSeekBar = setTimeout(() => {
318
333
  commonInstance.showHideControls.showHideSeekBar(false, controls);
319
334
 
320
- }, 100)
335
+ }, 5000)
321
336
  }
322
337
  if (!instance.playerConfig.isPinBottomControls()) {
323
- setTimeout(() => {
338
+ timerBottomControls = setTimeout(() => {
324
339
  commonInstance.showHideControls.showHideBottomControls(false, controls);
325
- }, 100)
340
+ }, 5000)
326
341
  }
327
342
  })
328
343
  }
@@ -735,7 +750,7 @@ export namespace LTPlayerControlsEvents {
735
750
  if (playerControlsBackground && !playerControlsContainer.classList.contains('player-lt__modal__mobile-show-modal')) {
736
751
  playerControlsBackground.classList.remove('d-none');
737
752
  }
738
- }, 4000);
753
+ }, 5000);
739
754
  }
740
755
  eventsInstance.common.subtitlesShow(instance);
741
756
  }