@saooti/octopus-sdk 37.0.37 → 37.0.39
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/assets/share.scss +7 -8
- package/src/components/display/podcasts/PodcastImage.vue +23 -0
- package/src/components/display/podcasts/PodcastPlayButton.vue +1 -1
- package/src/components/misc/player/PlayerVideoDigiteka.vue +31 -15
- package/src/sass/_variables.scss +1 -1
package/package.json
CHANGED
package/src/assets/share.scss
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
$newLightenColor:lighten($octopus-primary-color, 55%);
|
|
2
1
|
.octopus-app{
|
|
3
2
|
.page-box-absolute{
|
|
4
3
|
position: absolute;
|
|
@@ -273,7 +272,7 @@ $newLightenColor:lighten($octopus-primary-color, 55%);
|
|
|
273
272
|
background: rgba(0, 0, 0, 0.09);
|
|
274
273
|
}
|
|
275
274
|
.multiple-play-buttons-container{
|
|
276
|
-
background-color
|
|
275
|
+
background-color:$primaryColorLessTransparent;
|
|
277
276
|
border-radius: $octopus-borderradius;
|
|
278
277
|
color: white;
|
|
279
278
|
padding: 0.3rem;
|
|
@@ -286,19 +285,19 @@ $newLightenColor:lighten($octopus-primary-color, 55%);
|
|
|
286
285
|
font-size: 1.8rem;
|
|
287
286
|
color: white;
|
|
288
287
|
}
|
|
289
|
-
&.hover-type-audio, &.hover-type-video{
|
|
288
|
+
/* &.hover-type-audio, &.hover-type-video{
|
|
290
289
|
color: $newLightenColor;
|
|
291
290
|
.bloc-paddle > span{
|
|
292
291
|
background: $newLightenColor !important;
|
|
293
292
|
}
|
|
294
|
-
}
|
|
293
|
+
} */
|
|
295
294
|
&.hover-type-video{
|
|
296
|
-
|
|
295
|
+
/*.saooti-play{
|
|
297
296
|
color: white;
|
|
298
297
|
}
|
|
299
298
|
.saooti-play-video{
|
|
300
299
|
color: $newLightenColor;
|
|
301
|
-
}
|
|
300
|
+
} */
|
|
302
301
|
&.has-video{
|
|
303
302
|
.saooti-play-video{
|
|
304
303
|
font-size: 2.5rem;
|
|
@@ -306,12 +305,12 @@ $newLightenColor:lighten($octopus-primary-color, 55%);
|
|
|
306
305
|
}
|
|
307
306
|
}
|
|
308
307
|
&.hover-type-audio{
|
|
309
|
-
.saooti-play{
|
|
308
|
+
/* .saooti-play{
|
|
310
309
|
color: $newLightenColor;
|
|
311
310
|
}
|
|
312
311
|
.saooti-play-video{
|
|
313
312
|
color: white;
|
|
314
|
-
}
|
|
313
|
+
} */
|
|
315
314
|
&.has-video{
|
|
316
315
|
.saooti-play{
|
|
317
316
|
font-size: 2.5rem;
|
|
@@ -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
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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.
|
|
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: {
|
package/src/sass/_variables.scss
CHANGED
|
@@ -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 : #
|
|
24
|
+
$primaryColorLessTransparent : #1a8657ef !default;
|
|
25
25
|
$primaryColorMoreTransparent : #1a865854 !default;
|
|
26
26
|
$primaryColorReallyTransparent : #cef7e250 !default;
|