@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/dist/css/lt-player-main.css +1 -1
- package/dist/css/lt-player-main.css.map +1 -1
- package/dist/js/lt-player-main.js +1 -1
- package/dist/js/lt-player-main.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/sass/sections/_subtitles.scss +8 -0
- package/src/components/controls/LTPlayerControlsEvents.ts +23 -8
package/package.json
CHANGED
|
@@ -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
|
-
},
|
|
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
|
-
},
|
|
335
|
+
}, 5000)
|
|
321
336
|
}
|
|
322
337
|
if (!instance.playerConfig.isPinBottomControls()) {
|
|
323
|
-
setTimeout(() => {
|
|
338
|
+
timerBottomControls = setTimeout(() => {
|
|
324
339
|
commonInstance.showHideControls.showHideBottomControls(false, controls);
|
|
325
|
-
},
|
|
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
|
-
},
|
|
753
|
+
}, 5000);
|
|
739
754
|
}
|
|
740
755
|
eventsInstance.common.subtitlesShow(instance);
|
|
741
756
|
}
|