@saooti/octopus-sdk 37.0.36 → 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.36",
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 {
@@ -2,6 +2,7 @@
2
2
  <button
3
3
  v-if="!hidePlay || recordingLive"
4
4
  class="image-play-button"
5
+ :class="classicPodcastPlay ? '' : 'transparent-background'"
5
6
  @mouseenter="hoverType='audio'"
6
7
  @mouseleave="hoverType=''"
7
8
  @click="play(false)"
@@ -80,7 +81,7 @@ export default defineComponent({
80
81
  ]),
81
82
  isVideoPodcast(): boolean {
82
83
  return (
83
- this.fetchConference?.videoProfile?.includes("video_") ||
84
+ (this.fetchConference?.videoProfile?.includes("video_") && "READY_TO_RECORD" === this.podcast.processingStatus) ||
84
85
  undefined !== this.podcast.video?.videoId
85
86
  );
86
87
  },
@@ -211,6 +212,9 @@ export default defineComponent({
211
212
  position: absolute;
212
213
  top: 0;
213
214
  }
215
+ .transparent-background {
216
+ background-color: #ffffff80;
217
+ }
214
218
 
215
219
  .big-icon-error {
216
220
  font-size: 1.5rem;
@@ -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;