@saooti/octopus-sdk 35.2.17 → 35.2.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 +1 -1
- package/src/components/display/comments/CommentInput.vue +1 -1
- package/src/components/display/podcasts/PodcastImage.vue +1 -8
- package/src/components/mixins/player/playerComment.ts +1 -1
- package/src/components/mixins/player/playerLive.ts +4 -4
- package/src/stores/class/general/podcast.ts +0 -1
package/package.json
CHANGED
|
@@ -244,7 +244,7 @@ export default defineComponent({
|
|
|
244
244
|
if (
|
|
245
245
|
undefined !== this.podcast &&(
|
|
246
246
|
(this.playerPodcast?.podcastId ===this.podcast.podcastId) ||
|
|
247
|
-
(this.playerLive?.
|
|
247
|
+
(this.playerLive?.podcastId ===this.podcast.podcastId))
|
|
248
248
|
) {
|
|
249
249
|
timeline = Math.round(
|
|
250
250
|
this.playerElapsed * this.playerTotal
|
|
@@ -259,14 +259,7 @@ export default defineComponent({
|
|
|
259
259
|
if (!this.recordingLive) {
|
|
260
260
|
this.playerPlay(this.podcast);
|
|
261
261
|
}else{
|
|
262
|
-
this.playerPlay({
|
|
263
|
-
title: this.podcast.title,
|
|
264
|
-
audioUrl: this.podcast.audioUrl,
|
|
265
|
-
duration: this.podcast.duration,
|
|
266
|
-
conferenceId: this.fetchConference?.conferenceId,
|
|
267
|
-
livePodcastId: this.podcast.podcastId,
|
|
268
|
-
organisation: this.podcast.organisation,
|
|
269
|
-
});
|
|
262
|
+
this.playerPlay({...this.podcast, ...{conferenceId:this.fetchConference?.conferenceId}});
|
|
270
263
|
}
|
|
271
264
|
if(this.clickPlayGoPage){
|
|
272
265
|
this.$router.push('/main/pub/podcast/'+this.podcast.podcastId);
|
|
@@ -70,7 +70,7 @@ export const playerComment = defineComponent({
|
|
|
70
70
|
podcastId = this.playerPodcast.podcastId;
|
|
71
71
|
organisation = this.playerPodcast.organisation.id;
|
|
72
72
|
} else if (this.playerLive) {
|
|
73
|
-
podcastId = this.playerLive.
|
|
73
|
+
podcastId = this.playerLive.podcastId;
|
|
74
74
|
organisation = this.playerLive.organisation.id;
|
|
75
75
|
}
|
|
76
76
|
if (
|
|
@@ -61,17 +61,17 @@ export const playerLive = defineComponent({
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
async initLiveDownloadId(){
|
|
64
|
-
if(!this.playerLive){ return;}
|
|
65
|
-
let downloadId = null;
|
|
64
|
+
if(!this.playerLive || this.downloadId){ return;}
|
|
66
65
|
try {
|
|
67
|
-
downloadId = await octopusApi.putDataPublic<string | null>(0, 'podcast/prepare/live/'+this.playerLive.
|
|
68
|
-
await octopusApi.fetchDataPublicWithParams<string | null>(0,'podcast/download/live/' +
|
|
66
|
+
let downloadId = await octopusApi.putDataPublic<string | null>(0, 'podcast/prepare/live/'+this.playerLive.podcastId, undefined);
|
|
67
|
+
await octopusApi.fetchDataPublicWithParams<string | null>(0,'podcast/download/live/' +this.playerLive.podcastId +".m3u8",{
|
|
69
68
|
'downloadId': null!==downloadId ? downloadId : undefined,
|
|
70
69
|
'origin':'octopus',
|
|
71
70
|
'distributorId':this.authOrgaId
|
|
72
71
|
});
|
|
73
72
|
this.setDownloadId(downloadId);
|
|
74
73
|
} catch (error) {
|
|
74
|
+
this.downloadId = null;
|
|
75
75
|
console.log('ERROR downloadId');
|
|
76
76
|
}
|
|
77
77
|
this.hlsReady = true;
|