@saooti/octopus-sdk 38.0.18 → 38.0.19

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": "38.0.18",
3
+ "version": "38.0.19",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -54,7 +54,10 @@ export default defineComponent({
54
54
  this.audioPlayer = document.querySelector("#audio-player");
55
55
  },
56
56
  methods: {
57
- ...mapActions(usePlayerStore, ["playerUpdateSeekTime"]),
57
+ ...mapActions(usePlayerStore, [
58
+ "playerUpdateSeekTime",
59
+ "playerUpdateElapsed",
60
+ ]),
58
61
  closePopup(): void {
59
62
  this.$emit("close");
60
63
  },
@@ -65,8 +68,9 @@ export default defineComponent({
65
68
  const seekTime =
66
69
  this.playerTotal *
67
70
  (this.playerChapteringPercent[index].startPercent / 100);
68
- if (this.playerPodcast || this.playerLive) {
69
- this.playerUpdateSeekTime(seekTime);
71
+ this.playerUpdateSeekTime(seekTime);
72
+ if (0 === seekTime) {
73
+ this.playerUpdateElapsed(0);
70
74
  }
71
75
  this.audioPlayer.currentTime = seekTime;
72
76
  },
@@ -24,7 +24,7 @@
24
24
  {{ podcastTitle }}
25
25
  </div>
26
26
  </div>
27
- <PlayerChaptering class="w-100" />
27
+ <PlayerChaptering class="justify-content-center w-100" />
28
28
  <div class="player-grow-large-content">
29
29
  <PlayerProgressBar
30
30
  v-if="!radioUrl"
@@ -41,7 +41,7 @@ export const playerLogicProgress = defineComponent({
41
41
  );
42
42
  },
43
43
  playerSeekTime() {
44
- if (!this.playerSeekTime) {
44
+ if (undefined===this.playerSeekTime) {
45
45
  return;
46
46
  }
47
47
  if (this.playerPodcast || this.playerLive) {
@@ -192,9 +192,11 @@ export const usePlayerStore = defineStore("PlayerStore", {
192
192
  this.playerRadio.podcast = podcast;
193
193
  },
194
194
 
195
- playerUpdateElapsed(elapsed: number, total: number) {
195
+ playerUpdateElapsed(elapsed: number, total?: number) {
196
196
  this.playerElapsed = elapsed;
197
- this.playerTotal = total;
197
+ if(total){
198
+ this.playerTotal = total;
199
+ }
198
200
  },
199
201
 
200
202
  playerUpdateTranscript(transcript?: Transcript) {