@latest-thinking/lt-player 1.0.7-i → 1.0.7-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.7-i",
3
+ "version": "1.0.7-k",
4
4
  "description": "LT player.",
5
5
  "main": "dist/js/lt-player-main.js",
6
6
  "module": "dist/js/lt-player-main.js",
@@ -1,5 +1,19 @@
1
1
  @import "../abstracts/variables";
2
2
 
3
+ $modal-max-width: 620px;
4
+
5
+ @mixin modal-max-width {
6
+ @media (max-width: #{$modal-max-width}) {
7
+ @content;
8
+ }
9
+ }
10
+
11
+ @mixin modal-min-width {
12
+ @media (min-width: #{$modal-max-width}) {
13
+ @content;
14
+ }
15
+ }
16
+
3
17
  @mixin modal-h2 {
4
18
  font-size: $lt-player-font-size-xxxl2;
5
19
  font-weight: $lt-player-font-weight-lg;
@@ -169,11 +183,10 @@
169
183
  top: 0;
170
184
  width: 100%;
171
185
  height: 100%;
172
- background-color: rgba(0, 0, 0, 0.5);
173
- //opacity: 0;
174
- //visibility: hidden;
175
- //transform: scale(1.1);
176
- //transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
186
+
187
+ @include modal-min-width {
188
+ background-color: rgba(0, 0, 0, 0.5);
189
+ }
177
190
 
178
191
  &__mobile {
179
192
  position: absolute;
@@ -216,7 +229,7 @@
216
229
  overflow: auto;
217
230
  max-width: 620px;
218
231
 
219
- @media screen and (max-width: 620px) {
232
+ @include modal-max-width {
220
233
  max-height: unset;
221
234
  width: auto;
222
235
  height: 100%;
@@ -312,7 +325,7 @@
312
325
  &__modal-body {
313
326
  padding: 40px;
314
327
 
315
- @media screen and (max-width: 620px) {
328
+ @include modal-max-width {
316
329
  padding: 20px;
317
330
  }
318
331
  }
@@ -334,7 +347,7 @@
334
347
  right: 40px;
335
348
  margin-top: 0 !important;
336
349
 
337
- @media screen and (max-width: 620px) {
350
+ @include modal-max-width {
338
351
  top: 20px;
339
352
  right: 20px;
340
353
  }
@@ -343,11 +356,4 @@
343
356
  &__close-button:hover {
344
357
  color: #d75b4c;
345
358
  }
346
-
347
- &__show-modal {
348
- //opacity: 1;
349
- //visibility: visible;
350
- //transform: scale(1.0);
351
- //transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
352
- }
353
359
  }
@@ -14,7 +14,16 @@ export class LTPlayerHls {
14
14
  this.instance = instance;
15
15
  this.config = instance.playerConfig;
16
16
  this.playerSettings = playerSettings;
17
- this.hlsInstance = new Hls();
17
+ this.hlsInstance = new Hls({
18
+ "enableWorker": true,
19
+ "lowLatencyMode": true,
20
+ "backBufferLength": 20,
21
+ "abrEwmaFastVoD": 1,
22
+ "autoStartLoad": true,
23
+ "abrBandWidthUpFactor": 0.95,
24
+ "maxMaxBufferLength": 15,
25
+ "abrEwmaDefaultEstimate": 50
26
+ });
18
27
  }
19
28
 
20
29
  init() {
@@ -3,7 +3,7 @@
3
3
  </div>
4
4
  {{/embedded}}
5
5
  {{#video}}
6
- <video class="embed_player lt-player-wrapper" playsinline controls>
6
+ <video class="embed_player lt-player-wrapper" playsinline controls crossorigin preload="none">
7
7
  <source src="{{videoUrl.videoUrl}}"/>
8
8
  {{#defaultConfig.captions}}
9
9
  <track kind="captions" label="{{label}} captions" src="{{url}}" srclang="{{srclang}}" {{default}} />