@saooti/octopus-sdk 37.0.46 → 37.0.48

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.46",
3
+ "version": "37.0.48",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -13,7 +13,7 @@ import crudApi from "@/api/classicCrud";
13
13
  import displayMethods from "../../mixins/displayMethods";
14
14
  import { Podcast } from "@/stores/class/general/podcast";
15
15
  import { defineComponent } from "vue";
16
- import { Conference } from "@/stores/class/conference/conference";
16
+ import { Conference, ConferencePublicInfo } from "@/stores/class/conference/conference";
17
17
  export default defineComponent({
18
18
  name: "LiveItem",
19
19
 
@@ -71,10 +71,11 @@ export default defineComponent({
71
71
  ) {
72
72
  return;
73
73
  }
74
- const newStatus = await octopusApi.fetchData<string>(
74
+ const confInfo = await octopusApi.fetchData<ConferencePublicInfo>(
75
75
  9,
76
- "conference/realstatus/" + this.fetchConference.conferenceId,
76
+ "conference/info/" + this.fetchConference.conferenceId,
77
77
  );
78
+ const newStatus = confInfo.status;
78
79
  if (newStatus !== this.fetchConference.status) {
79
80
  this.$emit("updateItem", {
80
81
  ...this.fetchConference,
@@ -41,33 +41,44 @@
41
41
  <span class="flex-shrink-0">{{ $t("Last podcasts") }}</span>
42
42
  </div>
43
43
  <ClassicCheckbox
44
- v-model:textInit="proceedReading"
44
+ :text-init="proceedReading"
45
+ @update:text-init="$emit('update:proceedReading', $event)"
45
46
  id-checkbox="proceed-reading-checkbox"
46
47
  :label="$t('Proceed reading')"
47
48
  />
48
49
  <ClassicCheckbox
49
- v-model:textInit="isVisibleTemp"
50
+ :text-init="isVisible"
51
+ @update:text-init="$emit('update:isVisible', $event)"
50
52
  id-checkbox="is-visible-checkbox"
51
53
  :label="$t('Podcasts still available')"
52
54
  />
53
55
  </template>
54
56
  <ClassicCheckbox
55
57
  v-if="displayArticleParam"
56
- v-model:textInit="displayArticle"
58
+ :text-init="displayArticle"
59
+ @update:text-init="$emit('update:displayArticle', $event)"
57
60
  id-checkbox="display-article-checkbox"
58
61
  :label="$t('Display associated article')"
59
62
  />
60
63
  <ClassicCheckbox
61
64
  v-if="displayTranscriptParam"
62
- v-model:textInit="displayTranscript"
65
+ :text-init="displayTranscript"
66
+ @update:text-init="$emit('update:displayTranscript', $event)"
63
67
  id-checkbox="display-transcript-checkbox"
64
68
  :label="$t('If the transcript is available, show it')"
65
69
  />
66
70
  <ClassicCheckbox
67
- v-model:textInit="displayWave"
71
+ :text-init="displayWave"
72
+ @update:text-init="$emit('update:displayWave', $event)"
68
73
  id-checkbox="display-wave-checkbox"
69
74
  :label="$t('Show animated wave')"
70
75
  />
76
+ <ClassicCheckbox
77
+ :text-init="playerAutoPlay"
78
+ @update:text-init="$emit('update:playerAutoPlay', $event)"
79
+ id-checkbox="player-autoplay-checkbox"
80
+ :label="$t('Trigger automatic reading if this is possible')"
81
+ />
71
82
  </template>
72
83
 
73
84
  <script lang="ts">
@@ -83,26 +94,27 @@ export default defineComponent({
83
94
  displayChoiceAllEpisodes: { default: false, type: Boolean },
84
95
  displayTranscriptParam: { default: false, type: Boolean },
85
96
  displayArticleParam: { default: false, type: Boolean },
97
+ proceedReading: { default: true, type: Boolean },
98
+ displayArticle: { default: true, type: Boolean },
99
+ displayTranscript: { default: true, type: Boolean },
100
+ displayWave: { default: true, type: Boolean },
101
+ playerAutoPlay: { default: false, type: Boolean },
86
102
  },
87
103
  emits: [
88
104
  "episodeNumbers",
89
- "proceedReading",
90
- "isVisible",
105
+ "update:proceedReading",
106
+ "update:isVisible",
91
107
  "iFrameNumber",
92
- "displayArticle",
93
- "displayTranscript",
94
- "displayWave",
108
+ "update:displayArticle",
109
+ "update:displayTranscript",
110
+ "update:displayWave",
111
+ "update:playerAutoPlay"
95
112
  ],
96
113
 
97
114
  data() {
98
115
  return {
99
- proceedReading: true as boolean,
100
116
  episodeNumbers: "number" as string,
101
117
  iFrameNumberPriv: "3" as string,
102
- isVisibleTemp: this.isVisible,
103
- displayArticle: true as boolean,
104
- displayTranscript: true as boolean,
105
- displayWave: true as boolean,
106
118
  };
107
119
  },
108
120
  computed: {
@@ -122,27 +134,9 @@ export default defineComponent({
122
134
  episodeNumbers(): void {
123
135
  this.$emit("episodeNumbers", this.episodeNumbers);
124
136
  },
125
- proceedReading(): void {
126
- this.$emit("proceedReading", this.proceedReading);
127
- },
128
- isVisibleTemp(): void {
129
- this.$emit("isVisible", this.isVisibleTemp);
130
- },
131
- isVisible(): void {
132
- this.isVisibleTemp = this.isVisible;
133
- },
134
137
  iFrameNumberPriv(): void {
135
138
  this.$emit("iFrameNumber", this.iFrameNumberPriv);
136
139
  },
137
- displayArticle(): void {
138
- this.$emit("displayArticle", this.displayArticle);
139
- },
140
- displayTranscript(): void {
141
- this.$emit("displayTranscript", this.displayTranscript);
142
- },
143
- displayWave(): void {
144
- this.$emit("displayWave", this.displayWave);
145
- },
146
140
  },
147
141
  });
148
142
  </script>
@@ -48,19 +48,18 @@
48
48
  <PlayerParameters
49
49
  v-if="isPlayerParameter"
50
50
  :is-visible="isVisible"
51
- :chose-number-episode="
52
- displayChoiceAllEpisodes || isLargeSuggestion
53
- "
51
+ :chose-number-episode="displayChoiceAllEpisodes || isLargeSuggestion"
54
52
  :display-choice-all-episodes="displayChoiceAllEpisodes"
55
53
  :display-transcript-param="displayTranscriptParam"
56
54
  :display-article-param="displayArticleParam"
57
- @display-article="displayArticle = $event"
58
- @display-transcript="displayTranscript = $event"
59
- @display-wave="displayWave = $event"
60
- @episode-numbers="episodeNumbers = $event"
61
- @proceed-reading="proceedReading = $event"
62
- @is-visible="isVisible = $event"
55
+ v-model:display-article="displayArticle"
56
+ v-model:display-transcript="displayTranscript"
57
+ v-model:display-wave="displayWave"
58
+ v-model:proceed-reading="proceedReading"
59
+ v-model:is-visible="isVisible"
60
+ v-model:player-auto-play="playerAutoPlay"
63
61
  @i-frame-number="iFrameNumber = $event"
62
+ @episode-numbers="episodeNumbers = $event"
64
63
  />
65
64
  <ShareModalPlayer
66
65
  v-if="isShareModal"
@@ -144,6 +143,7 @@ export default defineComponent({
144
143
  displayArticle: true as boolean,
145
144
  displayTranscript: true as boolean,
146
145
  displayWave: true as boolean,
146
+ playerAutoPlay: false as boolean,
147
147
  orgaAttributes: undefined as
148
148
  | { [key: string]: string | number | boolean | undefined }
149
149
  | undefined,
@@ -268,9 +268,9 @@ export default defineComponent({
268
268
  },
269
269
  iFrame(): string {
270
270
  const specialDigiteka = this.podcast?.video?.videoId
271
- ? 'allowfullscreen="true" allow="autoplay" referrerpolicy="no-referrer-when-downgrade"'
271
+ ? 'allowfullscreen="true" referrerpolicy="no-referrer-when-downgrade"'
272
272
  : "";
273
- return `<iframe src="${this.iFrameSrc}" width="100%" height="${this.iFrameHeight}" scrolling="no" frameborder="0" ${specialDigiteka}></iframe>`;
273
+ return `<iframe src="${this.iFrameSrc}" width="100%" height="${this.iFrameHeight}" scrolling="no" frameborder="0" ${specialDigiteka} allow="clipboard-read; clipboard-write; autoplay"></iframe>`;
274
274
  },
275
275
  isPodcastNotVisible(): boolean {
276
276
  return (
@@ -368,6 +368,9 @@ export default defineComponent({
368
368
  if (!this.displayWave) {
369
369
  url.push("&wave=false");
370
370
  }
371
+ if(this.playerAutoPlay){
372
+ url.push('&autoplay=true');
373
+ }
371
374
  if (this.isVisible) {
372
375
  url.push("&key=" + window.btoa(this.dataTitle.toString()));
373
376
  }
@@ -77,7 +77,7 @@ export default defineComponent({
77
77
  },
78
78
 
79
79
  iFrame(): string {
80
- return `<iframe src="${this.iFrameSrc}" width="100%" height="140px" scrolling="no" frameborder="0"></iframe>`;
80
+ return `<iframe src="${this.iFrameSrc}" width="100%" height="140px" scrolling="no" allow="clipboard-read; clipboard-write; autoplay" frameborder="0"></iframe>`;
81
81
  },
82
82
  },
83
83
  async created() {
@@ -81,7 +81,7 @@ import crudApi from "@/api/classicCrud";
81
81
  import { state } from "../../stores/ParamSdkStore";
82
82
  import dayjs from "dayjs";
83
83
  import { Podcast } from "@/stores/class/general/podcast";
84
- import { Conference } from "@/stores/class/conference/conference";
84
+ import { Conference, ConferencePublicInfo } from "@/stores/class/conference/conference";
85
85
  import { handle403 } from "../mixins/handle403";
86
86
  import { defineComponent, defineAsyncComponent } from "vue";
87
87
  import { CommentPodcast } from "@/stores/class/general/comment";
@@ -265,14 +265,16 @@ export default defineComponent({
265
265
 
266
266
  methods: {
267
267
  async fetchConferencePublic() {
268
- const data = await octopusApi.fetchData<string>(
268
+ const data = await octopusApi.fetchData<ConferencePublicInfo>(
269
269
  9,
270
- "conference/realstatus/" + this.podcast.conferenceId,
270
+ "conference/info/" + this.podcast?.conferenceId,
271
271
  );
272
272
  this.fetchConference = {
273
- status: data,
274
- conferenceId: this.podcast.conferenceId,
275
- title: "",
273
+ ...data,
274
+ ...{
275
+ conferenceId: this.podcast?.conferenceId??0,
276
+ title: ""
277
+ }
276
278
  };
277
279
  },
278
280
  async initConference() {
package/src/locale/de.ts CHANGED
@@ -347,4 +347,5 @@ export default {
347
347
  "Video":"Video",
348
348
  "Video Version":"Videoversion",
349
349
  "Chronological":"Chronologisch",
350
+ "Trigger automatic reading if this is possible":"Wenn möglich, automatisches Auslesen auslösen",
350
351
  }
package/src/locale/en.ts CHANGED
@@ -347,4 +347,5 @@ export default {
347
347
  "Video":"Video",
348
348
  "Video Version":"Video version",
349
349
  "Chronological":"Chronological",
350
+ "Trigger automatic reading if this is possible":"Trigger automatic reading if this is possible",
350
351
  };
package/src/locale/es.ts CHANGED
@@ -348,4 +348,5 @@ export default {
348
348
  "Video":"Video",
349
349
  "Video Version":"Versión de vídeo",
350
350
  "Chronological":"Cronológico",
351
+ "Trigger automatic reading if this is possible":"Activar la lectura automática si esto es posible",
351
352
  }
package/src/locale/fr.ts CHANGED
@@ -354,4 +354,5 @@ export default {
354
354
  "Video":"Vidéo",
355
355
  "Video Version":"Version vidéo",
356
356
  "Chronological":"Chronologique",
357
+ "Trigger automatic reading if this is possible":"Déclencher la lecture automatique si celle ci est possible",
357
358
  };
package/src/locale/it.ts CHANGED
@@ -340,4 +340,5 @@ export default{
340
340
  "Video":"Video",
341
341
  "Video Version":"Versione video",
342
342
  "Chronological":"Cronologico",
343
+ "Trigger automatic reading if this is possible":"Attivare la lettura automatica, se possibile",
343
344
  };
package/src/locale/sl.ts CHANGED
@@ -337,4 +337,5 @@ export default {
337
337
  "Video":"Video",
338
338
  "Video Version":"Video različica",
339
339
  "Chronological":"Kronološko",
340
+ "Trigger automatic reading if this is possible":"Sprožite samodejno branje, če je to mogoče",
340
341
  }
@@ -35,3 +35,8 @@ export interface Conference {
35
35
  duration?: number;
36
36
  videoProfile?:string;
37
37
  }
38
+
39
+ export interface ConferencePublicInfo {
40
+ status: string;
41
+ videoProfile:string;
42
+ }