@saooti/octopus-sdk 35.2.17 → 35.2.18

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": "35.2.17",
3
+ "version": "35.2.18",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -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?.livePodcastId ===this.podcast.podcastId))
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.livePodcastId;
73
+ podcastId = this.playerLive.podcastId;
74
74
  organisation = this.playerLive.organisation.id;
75
75
  }
76
76
  if (
@@ -64,8 +64,8 @@ export const playerLive = defineComponent({
64
64
  if(!this.playerLive){ return;}
65
65
  let downloadId = null;
66
66
  try {
67
- downloadId = await octopusApi.putDataPublic<string | null>(0, 'podcast/prepare/live/'+this.playerLive.livePodcastId, undefined);
68
- await octopusApi.fetchDataPublicWithParams<string | null>(0,'podcast/download/live/' + this.playerLive.livePodcastId+".m3u8",{
67
+ downloadId = await octopusApi.putDataPublic<string | null>(0, 'podcast/prepare/live/'+this.playerLive.podcastId, undefined);
68
+ await octopusApi.fetchDataPublicWithParams<string | null>(0,'podcast/download/live/' +this.playerLive.podcastId +".m3u8",{
69
69
  'downloadId': null!==downloadId ? downloadId : undefined,
70
70
  'origin':'octopus',
71
71
  'distributorId':this.authOrgaId
@@ -39,7 +39,6 @@ export interface Podcast {
39
39
  title: string;
40
40
  weekDownloadCount?: number;
41
41
  order?: number;
42
- livePodcastId?: number
43
42
  }
44
43
  export function emptyPodcastData(): Podcast {
45
44
  return {