@saooti/octopus-sdk 37.0.55 → 37.0.56

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": "@saooti/octopus-sdk",
3
- "version": "37.0.55",
3
+ "version": "37.0.56",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -24,7 +24,7 @@
24
24
  border: 0.1rem solid #dee2e6;
25
25
  border-radius: $octopus-borderradius;
26
26
  height: 2rem;
27
- max-width: 100%;
27
+ max-width: 85vw;
28
28
  padding-right: 40px;
29
29
  }
30
30
  input[type="checkbox"], input[type="radio"]{
@@ -285,35 +285,19 @@
285
285
  font-size: 1.8rem;
286
286
  color: white;
287
287
  }
288
- /* &.hover-type-audio, &.hover-type-video{
289
- color: $newLightenColor;
290
- .bloc-paddle > span{
291
- background: $newLightenColor !important;
292
- }
293
- } */
294
- &.hover-type-video{
295
- /*.saooti-play{
296
- color: white;
297
- }
298
- .saooti-play-video{
299
- color: $newLightenColor;
300
- } */
301
- &.has-video{
302
- .saooti-play-video{
303
- font-size: 2.5rem;
288
+ @media (min-width: 500px) {
289
+ &.hover-type-video{
290
+ &.has-video{
291
+ .saooti-play-video{
292
+ font-size: 2.5rem;
293
+ }
304
294
  }
305
- }
306
- }
307
- &.hover-type-audio{
308
- /* .saooti-play{
309
- color: $newLightenColor;
310
- }
311
- .saooti-play-video{
312
- color: white;
313
- } */
314
- &.has-video{
315
- .saooti-play{
316
- font-size: 2.5rem;
295
+ }
296
+ &.hover-type-audio{
297
+ &.has-video{
298
+ .saooti-play{
299
+ font-size: 2.5rem;
300
+ }
317
301
  }
318
302
  }
319
303
  }
@@ -68,18 +68,12 @@ export default defineComponent({
68
68
  right: 1rem;
69
69
  }
70
70
  @media (max-width: 500px) {
71
- .video-wrapper {
72
- position: relative;
73
- padding-bottom: 56.25%;
74
- height: 0;
71
+ .video-close {
72
+ bottom: 10.5rem;
75
73
  }
76
74
  .video-wrapper iframe {
77
- position: absolute;
78
- top: 0;
79
- left: 0;
80
- width: 100% !important;
81
- height: 100%;
82
- margin: 0 !important;
75
+ width: 100%;
76
+ max-height: 150px;
83
77
  }
84
78
  }
85
79
  }
@@ -94,13 +94,15 @@ export const playerLive = defineComponent({
94
94
  this.hls.loadSource(hlsStreamUrl);
95
95
  });
96
96
  },
97
- endingLive(): void {
97
+ async endingLive(): Promise<void> {
98
98
  const audio: HTMLElement | null = document.getElementById("audio-player");
99
99
  if (audio && this.hls) {
100
100
  this.hls.destroy();
101
- (audio as HTMLAudioElement).src = "";
102
101
  this.hls = null;
102
+ }else{
103
+ await (audio as HTMLAudioElement).pause();
103
104
  }
105
+ (audio as HTMLAudioElement).src = "";
104
106
  },
105
107
  },
106
108
  });