@saooti/octopus-sdk 41.9.4 → 41.9.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 41.9.5 (17/04/2026)
4
+
5
+ **Fixes**
6
+
7
+ - **14433** - Correction problème lecture vidéo
8
+
3
9
  ## 41.9.4 (16/04/2026)
4
10
 
5
11
  **Features**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "41.9.4",
3
+ "version": "41.9.5",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -100,6 +100,7 @@ import duration from "dayjs/plugin/duration";
100
100
  import { useI18n } from "vue-i18n";
101
101
  import { useRouter } from "vue-router";
102
102
  import { useResizePhone } from "../../composable/useResizePhone";
103
+ import { podcastApi } from "../../../api/podcastApi";
103
104
  dayjs.extend(duration);
104
105
  const PodcastIsPlaying = defineAsyncComponent(() => import("./PodcastIsPlaying.vue"));
105
106
 
@@ -276,7 +277,7 @@ const durationIso = computed(() => {
276
277
  });
277
278
 
278
279
  //Methods
279
- function play(isVideo: boolean): void {
280
+ async function play(isVideo: boolean): Promise<void> {
280
281
  if (isLiveToBeRecorded.value) {
281
282
  return;
282
283
  }
@@ -288,18 +289,22 @@ function play(isVideo: boolean): void {
288
289
  router.push("/main/pub/video/" + props.podcast.podcastId);
289
290
  return;
290
291
  }
292
+
293
+ let podcast: Podcast|SimplifiedPodcast = props.podcast;
294
+ if (isVideo && !('video' in props.podcast)) {
295
+ podcast = await podcastApi.get(props.podcast.podcastId);
296
+ }
297
+
291
298
  if (!recordingLive.value) {
292
- playerStore.playerPlay(props.podcast, isVideo);
299
+ playerStore.playerPlay(podcast, isVideo);
293
300
  } else {
294
301
  playerStore.playerPlay(
295
302
  {
296
- ...props.podcast,
297
- ...{
298
- conferenceId: props.fetchConference?.conferenceId,
299
- hlsIdentifier: props.fetchConference?.hlsIdentifier,
300
- },
303
+ ...podcast,
304
+ conferenceId: props.fetchConference?.conferenceId,
305
+ hlsIdentifier: props.fetchConference?.hlsIdentifier,
301
306
  },
302
- isVideo,
307
+ isVideo
303
308
  );
304
309
  }
305
310
  }
@@ -136,8 +136,9 @@ export const usePlayerStore = defineStore("PlayerStore", {
136
136
  this.playerElapsed > 0 &&
137
137
  this.playerTotal &&
138
138
  this.playerTotal > 0
139
- )
139
+ ) {
140
140
  return DurationHelper.formatDuration(Math.round(this.playerTotal));
141
+ }
141
142
  return "--:--";
142
143
  },
143
144
  isPlaying(): boolean {