@latest-thinking/lt-player 1.0.4-j → 1.0.4-k

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.4-j",
3
+ "version": "1.0.4-k",
4
4
  "description": "LT player.",
5
5
  "main": "dist/js/lt-player-main.js",
6
6
  "module": "dist/js/lt-player-main.js",
@@ -309,6 +309,9 @@
309
309
  position: absolute;
310
310
  rotate: 270deg!important;
311
311
  bottom: 5rem;
312
+ max-width: 110px;
313
+ min-width: 80px;
314
+ width: 20%;
312
315
 
313
316
  .volume_control__background__area__range {
314
317
  color: $default-lt-button-color !important;
@@ -50,6 +50,35 @@ export namespace LTPlayerEvents {
50
50
  if (controls.classList.contains('plyr__controls-enable')) {
51
51
  controls.classList.remove('plyr__controls-enable')
52
52
  }
53
+
54
+ const volumeControl = controls.querySelector('.bottom-controller__volume_control');
55
+ const volumeButton = volumeControl.querySelector('.button-open');
56
+ const volumeBackground = volumeControl.querySelector('.volume_control__background');
57
+ const volumeBackgroundArea = volumeControl.querySelector('.volume_control__background__area');
58
+ const volumeArea = volumeControl.querySelector('.volume_control__background__area__range');
59
+
60
+
61
+ if (volumeButton) {
62
+ volumeButton.classList.remove('d-none');
63
+ }
64
+
65
+ if (volumeBackground) {
66
+ volumeBackground.classList.add('d-none')
67
+ }
68
+
69
+ if (volumeBackgroundArea) {
70
+ volumeBackgroundArea.classList.add('d-none')
71
+ }
72
+
73
+ if (volumeArea) {
74
+ volumeArea.classList.remove('volume-area-open')
75
+ }
76
+
77
+ if (volumeControl) {
78
+ volumeControl.classList.remove('volume-area-open');
79
+ volumeControl.classList.remove('volume-control-enable');
80
+ }
81
+
53
82
  }
54
83
  const enablePoster = () => {
55
84
 
@@ -91,7 +120,6 @@ export namespace LTPlayerEvents {
91
120
  if (!background.classList.contains('d-none')) {
92
121
  background.classList.add('d-none');
93
122
  }
94
-
95
123
  }
96
124
  }
97
125