@latest-thinking/lt-player 1.0.4-m → 1.0.4-o

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-m",
3
+ "version": "1.0.4-o",
4
4
  "description": "LT player.",
5
5
  "main": "dist/js/lt-player-main.js",
6
6
  "module": "dist/js/lt-player-main.js",
@@ -28,11 +28,36 @@
28
28
 
29
29
  &__controls {
30
30
 
31
+ touch-action: inherit!important;
32
+
31
33
  &__mobile-background {
34
+ touch-action: inherit!important;
32
35
  position: absolute;
33
36
  width: 100%;
34
37
  height: 100%;
35
38
  z-index: 9999;
39
+
40
+ .lt-player-notification {
41
+ .lt-player-rewind {
42
+ height: 100%;
43
+ top: 0;
44
+ }
45
+
46
+ .lt-player-rewind__icon__portrait {
47
+ margin: auto auto auto 2rem;
48
+ }
49
+
50
+ .lt-player-forward {
51
+ height: 100%;
52
+ top: 0;
53
+ }
54
+
55
+ .lt-player-forward__icon__portrait {
56
+ margin: auto 2rem auto auto;
57
+ }
58
+ }
59
+
60
+
36
61
  }
37
62
 
38
63
  &__shortcut-area {
@@ -117,6 +117,8 @@
117
117
  display: flex;
118
118
  flex-direction: column;
119
119
  justify-content: space-between;
120
+ position: absolute;
121
+ bottom: 0;
120
122
 
121
123
  &__header {
122
124
  padding: 1.5rem;
@@ -157,6 +159,7 @@
157
159
  font-size: $lt-player-font-size-xxl;
158
160
  margin: 0;
159
161
  color: $default-lt-player-white !important;
162
+ display: block;
160
163
  }
161
164
  }
162
165
 
@@ -345,7 +345,7 @@
345
345
  top: 0;
346
346
  background: #27282A;
347
347
  opacity: 0.75;
348
- z-index: 5;
348
+ z-index: 10;
349
349
  }
350
350
  }
351
351
  }
@@ -11,3 +11,7 @@
11
11
  font-family: $lt-font-family-base !important;
12
12
  white-space: unset !important;
13
13
  }
14
+
15
+ .plyr__captions span:empty {
16
+ display: none!important;
17
+ }
@@ -80,7 +80,7 @@
80
80
  .bottom-controller {
81
81
  .play-button {
82
82
  padding: .75rem;
83
- bottom: 0;
83
+ bottom: -2px;
84
84
  }
85
85
 
86
86
  &__center-buttons {
@@ -97,7 +97,7 @@
97
97
  .bottom-controller {
98
98
  .play-button {
99
99
  padding: .75rem;
100
- bottom: 0;
100
+ bottom: -2px;
101
101
  }
102
102
 
103
103
  &__center-buttons {
@@ -129,7 +129,7 @@
129
129
 
130
130
  .play-button {
131
131
  padding: .75rem;
132
- bottom: 0;
132
+ bottom: -2px;
133
133
  }
134
134
 
135
135
  .plyr__controls_speed-button {
@@ -251,10 +251,14 @@
251
251
  white-space: nowrap;
252
252
  font-size: 12px;
253
253
  transition: none;
254
+ outline: none;
254
255
  background-color: $default-lt-player-blue;
255
256
 
256
257
  &:focus,
257
- &:active {
258
+ &:active,
259
+ &:hover,
260
+ &:focus-visible {
261
+ outline: $default-lt-player-blue;
258
262
  background-color: $default-lt-player-blue;
259
263
  }
260
264
  }
@@ -269,9 +273,12 @@
269
273
  }
270
274
 
271
275
  &__play-button_body {
272
- bottom: -8px;
273
276
  position: relative;
274
277
 
278
+ &__portrait {
279
+ bottom: -8px;
280
+ }
281
+
275
282
  .play-button {
276
283
  @extend %lt-player-btn;
277
284
  @include yellow-btn;
@@ -12,7 +12,10 @@
12
12
  }
13
13
 
14
14
  .poster-paragraph {
15
- font-size: .9rem;
15
+ &__content {
16
+ font-size: .9rem;
17
+ }
18
+
16
19
  }
17
20
  }
18
21
  }
@@ -70,6 +73,7 @@
70
73
  .content__body {
71
74
  z-index: 2;
72
75
  margin-top: auto;
76
+ width: 100%;
73
77
  }
74
78
 
75
79
  .poster-title {
@@ -83,14 +87,50 @@
83
87
  }
84
88
 
85
89
  .poster-paragraph {
86
- font-weight: $lt-player-font-weight-sm;
87
- color: $default-lt-player-white !important;
90
+
91
+ margin-bottom: 3rem;
92
+
93
+ &__content {
94
+ display: -webkit-box;
95
+ -webkit-line-clamp: 2;
96
+ -webkit-box-orient: vertical;
97
+ word-wrap: break-word;
98
+ text-overflow: ellipsis;
99
+ overflow: hidden;
100
+
101
+ font-weight: $lt-player-font-weight-sm;
102
+ color: $default-lt-player-white !important;
103
+ margin-bottom: 0;
104
+ max-height: 3.1rem;
105
+ transition: max-height 0.3s ease-in-out;
106
+ }
107
+
108
+ .open-content {
109
+ display: block;
110
+ transition: max-height 0.3s ease-in-out;
111
+ }
88
112
  }
113
+ }
89
114
 
115
+ .poster-paragraph__button {
116
+ background: none;
117
+ box-shadow: none;
118
+ padding: 0;
119
+ border: none;
120
+ margin: 0;
121
+ text-decoration: none;
122
+ font-size: 0.8rem;
123
+ color: white;
124
+ cursor: pointer;
125
+ position: absolute;
126
+ bottom: 6rem;
127
+ right: 6rem;
128
+ z-index: 8;
90
129
  }
91
130
 
92
131
 
93
132
  .lt-player-rewind-area {
133
+ touch-action: inherit!important;
94
134
  width: 100%;
95
135
  height: 100%;
96
136
  z-index: 3;
@@ -98,14 +138,15 @@
98
138
 
99
139
  .lt-player-rewind {
100
140
  width: 50%;
101
- height: 100%;
141
+ height: 130%;
142
+ top: -10rem;
102
143
  display:flex;
103
144
  flex-direction: row;
104
145
  position: absolute;
105
146
  text-align: center;
106
147
  border-radius:0 100% 100% 0;
107
148
  left: 0;
108
- top: 0;
149
+
109
150
 
110
151
  &__icon-wrapper {
111
152
  display: flex;
@@ -125,9 +166,17 @@
125
166
  display: flex;
126
167
  justify-content:flex-start;
127
168
  align-items:center;
128
- margin: auto;
169
+
129
170
  color: rgba(255,255,255, 1);
130
171
  user-select: none;
172
+
173
+ &__portrait {
174
+ margin: auto auto 18rem 3rem;
175
+ }
176
+
177
+ &__landscape {
178
+ margin: auto auto 13rem 4rem;
179
+ }
131
180
  }
132
181
 
133
182
  span {
@@ -138,6 +187,7 @@
138
187
  }
139
188
 
140
189
  .lt-player-forward-area {
190
+ touch-action: inherit!important;
141
191
  width: 100%;
142
192
  height: 100%;
143
193
  z-index: 4;
@@ -145,14 +195,14 @@
145
195
 
146
196
  .lt-player-forward {
147
197
  width: 50%;
148
- height: 100%;
198
+ height: 130%;
199
+ top: -10rem;
149
200
  display:flex;
150
201
  flex-direction: row;
151
202
  position: absolute;
152
203
  text-align: center;
153
204
  border-radius:100% 0 0 100%;
154
205
  right: 0;
155
- top: 0;
156
206
 
157
207
  &__icon-wrapper {
158
208
  display: flex;
@@ -171,8 +221,17 @@
171
221
  display: flex;
172
222
  justify-content:flex-start;
173
223
  align-items:center;
174
- margin: auto;
224
+
175
225
  color: rgba(255,255,255, 1);
226
+
227
+ &__portrait {
228
+ margin: auto 3rem 18rem auto;
229
+ }
230
+
231
+ &__landscape {
232
+ margin: auto 4rem 13rem auto;
233
+ }
234
+
176
235
  }
177
236
 
178
237
  span{
@@ -183,7 +242,7 @@
183
242
 
184
243
 
185
244
  .lt-player-notify {
186
- transition: background 0.2s;
245
+ transition: background 0.8s;
187
246
  //background: rgba(200,200,200,.4) radial-gradient(circle, transparent 1%, rgba(200,200,200,.4) 1%) center/15000%;
188
247
  opacity: 0;
189
248
  //opacity: 1;
@@ -155,6 +155,8 @@ export namespace LTPlayerAdditionalInfo {
155
155
  window.Player.players.forEach( item => {item.plyr.pause()});
156
156
 
157
157
  __this.dragCloseModal(controller);
158
+
159
+ controller.playerInstance.playerControl.mobileEvents.showControls(controller.playerInstance)
158
160
  })
159
161
  }
160
162
  })
@@ -173,8 +175,7 @@ export namespace LTPlayerAdditionalInfo {
173
175
  if (playerControlsContainer.classList.contains('player-lt__modal__mobile-show-modal')) {
174
176
 
175
177
  modal.style.removeProperty('bottom')
176
- playerControlsContainer.classList.remove('plyr__controls-enable-addInfo')
177
-
178
+ playerControlsContainer.classList.remove('plyr__controls-enable-addInfo');
178
179
 
179
180
  setTimeout(() => {
180
181
  const modalBody = playerControlsContainer.querySelector('.player-lt__modal__mobile');
@@ -93,7 +93,7 @@ export class LTPlayerChapters {
93
93
  return;
94
94
  }
95
95
  if (leftButton.dataset.ltPlayerChaptertimestamp) {
96
- player.currentTime = parseFloat(leftButton.dataset.ltPlayerChaptertimestamp);
96
+ player.currentTime = parseFloat(leftButton.dataset.ltPlayerChaptertimestamp) + 0.1;
97
97
  }
98
98
  })
99
99
 
@@ -116,7 +116,7 @@ export class LTPlayerChapters {
116
116
  }
117
117
 
118
118
  if (rightButton.dataset.ltPlayerChaptertimestamp) {
119
- player.currentTime = parseFloat(rightButton.dataset.ltPlayerChaptertimestamp);
119
+ player.currentTime = parseFloat(rightButton.dataset.ltPlayerChaptertimestamp) + 0.1;
120
120
  }
121
121
 
122
122
  })
@@ -140,8 +140,10 @@ export class LTPlayerChapters {
140
140
  return;
141
141
  }
142
142
  if (leftButton.dataset.ltPlayerChaptertimestamp) {
143
- player.currentTime = parseFloat(leftButton.dataset.ltPlayerChaptertimestamp);
143
+ player.currentTime = parseFloat(leftButton.dataset.ltPlayerChaptertimestamp) + 0.1;
144
144
  }
145
+
146
+ instance.playerControl.mobileEvents.showControls(instance);
145
147
  })
146
148
  }
147
149
  }
@@ -167,8 +169,10 @@ export class LTPlayerChapters {
167
169
  }
168
170
 
169
171
  if (rightButton.dataset.ltPlayerChaptertimestamp) {
170
- player.currentTime = parseFloat(rightButton.dataset.ltPlayerChaptertimestamp);
172
+ player.currentTime = parseFloat(rightButton.dataset.ltPlayerChaptertimestamp) + 0.1;
171
173
  }
174
+
175
+ instance.playerControl.mobileEvents.showControls(instance);
172
176
  })
173
177
  }
174
178
  }