@saooti/octopus-sdk 37.0.37 → 37.0.38

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.37",
3
+ "version": "37.0.38",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -273,7 +273,7 @@ $newLightenColor:lighten($octopus-primary-color, 55%);
273
273
  background: rgba(0, 0, 0, 0.09);
274
274
  }
275
275
  .multiple-play-buttons-container{
276
- background-color:rgba(0, 0, 0, 0.7);
276
+ background-color:$primaryColorLessTransparent;
277
277
  border-radius: $octopus-borderradius;
278
278
  color: white;
279
279
  padding: 0.3rem;
@@ -93,6 +93,29 @@ export default defineComponent({
93
93
  "READY_TO_RECORD" !== this.podcast.processingStatus
94
94
  );
95
95
  },
96
+ statusText(): string {
97
+ if (!this.fetchConference) return '';
98
+ switch (this.fetchConference.status) {
99
+ case 'PLANNED':
100
+ return this.$t('live in few time');
101
+ case 'PENDING':
102
+ if (this.isAnimatorLive) return this.$t('Open studio');
103
+ return this.$t('live upcoming');
104
+ case 'RECORDING':
105
+ return this.$t('In live');
106
+ case 'DEBRIEFING':
107
+ /* if (!this.isAnimatorLive) return ''; */
108
+ if ('READY_TO_RECORD' === this.podcast.processingStatus)
109
+ return this.$t('Not recording');
110
+ return this.$t('Debriefing');
111
+ case 'ERROR':
112
+ return this.$t('In error');
113
+ case 'PUBLISHING':
114
+ return this.$t('Publishing');
115
+ default:
116
+ return '';
117
+ }
118
+ },
96
119
  },
97
120
  watch: {
98
121
  arrowDirection(): void {
@@ -81,7 +81,7 @@ export default defineComponent({
81
81
  ]),
82
82
  isVideoPodcast(): boolean {
83
83
  return (
84
- this.fetchConference?.videoProfile?.includes("video_") ||
84
+ (this.fetchConference?.videoProfile?.includes("video_") && "READY_TO_RECORD" === this.podcast.processingStatus) ||
85
85
  undefined !== this.podcast.video?.videoId
86
86
  );
87
87
  },
@@ -1,34 +1,44 @@
1
1
  <template>
2
- <iframe
3
- ref="iframeVideo"
4
- :src="srcVideo"
5
- :title="$t('Video')"
6
- width="500"
7
- height="281"
8
- style="z-index: 1"
9
- ebkitallowfullscreen="true"
10
- mozallowfullscreen="true"
11
- allowfullscreen="true"
12
- allow="fullscreen, autoplay"
13
- referrerpolicy="no-referrer-when-downgrade"
14
- ></iframe>
2
+ <div>
3
+ <iframe
4
+ v-if="playerPodcast?.video?.videoId"
5
+ ref="iframeVideo"
6
+ :src="srcVideo"
7
+ :title="$t('Video')"
8
+ width="500"
9
+ height="281"
10
+ style="z-index: 1"
11
+ ebkitallowfullscreen="true"
12
+ mozallowfullscreen="true"
13
+ allowfullscreen="true"
14
+ allow="fullscreen, autoplay"
15
+ referrerpolicy="no-referrer-when-downgrade"
16
+ ></iframe>
17
+ <SnackBar ref="snackbar" position="bottom-left" />
18
+ </div>
15
19
  </template>
16
20
 
17
21
  <script lang="ts">
22
+ import SnackBar from "../../misc/SnackBar.vue";
18
23
  import { usePlayerStore } from "@/stores/PlayerStore";
19
24
  import { mapState } from "pinia";
20
25
  import { defineComponent } from "vue";
21
26
  export default defineComponent({
22
27
  name: "PlayerVideo",
23
- components: {},
28
+ components: {
29
+ SnackBar
30
+ },
24
31
 
25
32
  computed: {
26
33
  ...mapState(usePlayerStore, ["playerPodcast", "playerVideo"]),
34
+ videoId(): string|undefined{
35
+ return this.playerPodcast?.video?.videoId;
36
+ },
27
37
  srcVideo(): string {
28
38
  if (this.playerVideo) {
29
39
  return (
30
40
  "//www.ultimedia.com/deliver/generic/iframe/mdtk/01009833/zone/1/showtitle/1/src/" +
31
- this.playerPodcast?.video?.videoId +
41
+ this.videoId +
32
42
  "/sound/true/autoplay/1"
33
43
  );
34
44
  }
@@ -41,6 +51,12 @@ export default defineComponent({
41
51
  }, */
42
52
  },
43
53
  mounted() {
54
+ if(undefined===this.videoId){
55
+ (this.$refs.snackbar as InstanceType<typeof SnackBar>).open(
56
+ this.$t("Podcast play error"),
57
+ );
58
+ }
59
+
44
60
  /* this.goFullScreen(); */
45
61
  },
46
62
  methods: {
@@ -21,6 +21,6 @@ $octopus-primary-color: #1a8658 !default;
21
21
  $octopus-secondary-color : #ddd !default;
22
22
 
23
23
  $primaryColorTransparent : #1a865893 !default;
24
- $primaryColorLessTransparent : #1a8657d0 !default;
24
+ $primaryColorLessTransparent : #1a8657ef !default;
25
25
  $primaryColorMoreTransparent : #1a865854 !default;
26
26
  $primaryColorReallyTransparent : #cef7e250 !default;