@saooti/octopus-sdk 39.0.28 → 39.0.30
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
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
ebkitallowfullscreen="true"
|
|
12
12
|
mozallowfullscreen="true"
|
|
13
13
|
allowfullscreen="true"
|
|
14
|
-
allow="fullscreen
|
|
14
|
+
allow="fullscreen; autoplay"
|
|
15
15
|
referrerpolicy="no-referrer-when-downgrade"
|
|
16
16
|
></iframe>
|
|
17
17
|
<SnackBar ref="snackbar" position="bottom-left" />
|
|
@@ -23,6 +23,7 @@ import SnackBar from "../../SnackBar.vue";
|
|
|
23
23
|
import { usePlayerStore } from "@/stores/PlayerStore";
|
|
24
24
|
import { mapState } from "pinia";
|
|
25
25
|
import { defineComponent } from "vue";
|
|
26
|
+
import { state } from "../../../../stores/ParamSdkStore";
|
|
26
27
|
export default defineComponent({
|
|
27
28
|
name: "PlayerVideo",
|
|
28
29
|
components: {
|
|
@@ -31,6 +32,9 @@ export default defineComponent({
|
|
|
31
32
|
|
|
32
33
|
computed: {
|
|
33
34
|
...mapState(usePlayerStore, ["playerPodcast", "playerVideo"]),
|
|
35
|
+
isVideoFullscreen(): boolean {
|
|
36
|
+
return state.player.isVideoFullscreen as boolean;
|
|
37
|
+
},
|
|
34
38
|
videoId(): string | undefined {
|
|
35
39
|
return this.playerPodcast?.video?.videoId;
|
|
36
40
|
},
|
|
@@ -39,7 +43,7 @@ export default defineComponent({
|
|
|
39
43
|
return (
|
|
40
44
|
"//www.ultimedia.com/deliver/generic/iframe/mdtk/01009833/zone/1/showtitle/1/src/" +
|
|
41
45
|
this.videoId +
|
|
42
|
-
"/sound/
|
|
46
|
+
"/sound/yes/autoplay/1"
|
|
43
47
|
);
|
|
44
48
|
}
|
|
45
49
|
return "";
|
|
@@ -51,6 +55,20 @@ export default defineComponent({
|
|
|
51
55
|
this.$t("Podcast play error"),
|
|
52
56
|
);
|
|
53
57
|
}
|
|
58
|
+
if(!this.isVideoFullscreen){
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
this.$nextTick(() => {
|
|
62
|
+
this.goFullScreen();
|
|
63
|
+
});
|
|
54
64
|
},
|
|
65
|
+
methods:{
|
|
66
|
+
goFullScreen() {
|
|
67
|
+
if ("" === this.srcVideo) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
(this.$refs.iframeVideo as Element).requestFullscreen();
|
|
71
|
+
},
|
|
72
|
+
}
|
|
55
73
|
});
|
|
56
74
|
</script>
|
|
@@ -59,15 +59,11 @@ export const playerLogic = defineComponent({
|
|
|
59
59
|
if (
|
|
60
60
|
this.playerMedia ||
|
|
61
61
|
!this.playerPodcast ||
|
|
62
|
+
this.playerVideo ||
|
|
62
63
|
!this.playerPodcast.availability.visibility ||
|
|
63
64
|
this.listenError
|
|
64
65
|
) {
|
|
65
66
|
this.audioUrlToPlay = this.audioUrl;
|
|
66
|
-
}
|
|
67
|
-
if (
|
|
68
|
-
!this.playerPodcast?.availability.visibility ||
|
|
69
|
-
this.listenError
|
|
70
|
-
) {
|
|
71
67
|
return;
|
|
72
68
|
}
|
|
73
69
|
const response = await octopusApi.fetchDataPublicWithParams<{
|
|
@@ -166,9 +162,10 @@ export const playerLogic = defineComponent({
|
|
|
166
162
|
return parameters;
|
|
167
163
|
},
|
|
168
164
|
getAudioUrl(): string {
|
|
169
|
-
if (this.playerMedia)
|
|
165
|
+
if (this.playerMedia){
|
|
170
166
|
return this.playerMedia.audioUrl ? this.playerMedia.audioUrl : "";
|
|
171
|
-
|
|
167
|
+
}
|
|
168
|
+
if (!this.playerPodcast || this.playerVideo) return "";
|
|
172
169
|
if (
|
|
173
170
|
!this.playerPodcast.availability.visibility ||
|
|
174
171
|
"PROCESSING" === this.playerPodcast.processingStatus
|
|
@@ -179,7 +179,7 @@ export const playerVast = defineComponent({
|
|
|
179
179
|
contentEndedAdsLoader():void{
|
|
180
180
|
if (this.isAdPlaying) return;
|
|
181
181
|
this.isContentFinished = true;
|
|
182
|
-
adsLoader
|
|
182
|
+
adsLoader?.contentComplete();
|
|
183
183
|
},
|
|
184
184
|
onAdChangePlayingStatus(){
|
|
185
185
|
if(!adsManager){return;}
|
|
@@ -13,7 +13,7 @@ const state: ParamStore = {
|
|
|
13
13
|
isProduction: true,
|
|
14
14
|
isContribution: true,
|
|
15
15
|
isRadio: true,
|
|
16
|
-
ApiUri: "https://api.
|
|
16
|
+
ApiUri: "https://api.staging.saooti.org/",
|
|
17
17
|
podcastmaker: false,
|
|
18
18
|
buttonPlus: true,
|
|
19
19
|
allCategories: [],
|
|
@@ -27,8 +27,8 @@ const state: ParamStore = {
|
|
|
27
27
|
SharePlayer: true,
|
|
28
28
|
ShareButtons: true,
|
|
29
29
|
ShareDistribution: true,
|
|
30
|
-
MiniplayerUri: "https://playerbeta.
|
|
31
|
-
hlsUri: "https://hls.live.
|
|
30
|
+
MiniplayerUri: "https://playerbeta.staging.saooti.org/",
|
|
31
|
+
hlsUri: "https://hls.live.staging.saooti.org/",
|
|
32
32
|
mainRubrique: 0,
|
|
33
33
|
resourceUrl: undefined,
|
|
34
34
|
podcastItemShowEmission: false,
|
|
@@ -70,6 +70,7 @@ const state: ParamStore = {
|
|
|
70
70
|
player: {
|
|
71
71
|
image: true,
|
|
72
72
|
emissionName: false,
|
|
73
|
+
isVideoFullscreen:false,
|
|
73
74
|
},
|
|
74
75
|
footer: {
|
|
75
76
|
contactLink: undefined,
|
|
@@ -80,14 +81,14 @@ const state: ParamStore = {
|
|
|
80
81
|
userName: "",
|
|
81
82
|
},
|
|
82
83
|
octopusApi: {
|
|
83
|
-
url: "https://api.
|
|
84
|
-
commentsUrl: "https://comments.
|
|
85
|
-
imageUrl: "https://imageproxy.
|
|
86
|
-
studioUrl: "https://studio.
|
|
87
|
-
playerUrl: "https://playerbeta.
|
|
88
|
-
speechToTextUrl: "https://speech2text.
|
|
89
|
-
radioUrl:"https://radio.
|
|
90
|
-
recoUrl: "https://reco.
|
|
84
|
+
url: "https://api.staging.saooti.org/",
|
|
85
|
+
commentsUrl: "https://comments.staging.saooti.org/",
|
|
86
|
+
imageUrl: "https://imageproxy.staging.saooti.org/",
|
|
87
|
+
studioUrl: "https://studio.staging.saooti.org/",
|
|
88
|
+
playerUrl: "https://playerbeta.staging.saooti.org/",
|
|
89
|
+
speechToTextUrl: "https://speech2text.staging.saooti.org/",
|
|
90
|
+
radioUrl:"https://radio.staging.saooti.org/",
|
|
91
|
+
recoUrl: "https://reco.staging.saooti.org/",
|
|
91
92
|
organisationId: undefined,
|
|
92
93
|
rubriqueIdFilter: undefined,
|
|
93
94
|
},
|
|
@@ -161,6 +162,7 @@ export interface SearchPage {
|
|
|
161
162
|
export interface Player {
|
|
162
163
|
image?: boolean;
|
|
163
164
|
emissionName?: boolean;
|
|
165
|
+
isVideoFullscreen?:boolean;
|
|
164
166
|
}
|
|
165
167
|
export interface Footer {
|
|
166
168
|
contactLink?: string;
|
|
@@ -169,9 +169,11 @@ export const usePlayerStore = defineStore("PlayerStore", {
|
|
|
169
169
|
}
|
|
170
170
|
if (param.podcastId) {
|
|
171
171
|
this.playerPodcast = param;
|
|
172
|
-
this.
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
if(!this.playerVideo){
|
|
173
|
+
this.playerCurrentChange = param.podcastId;
|
|
174
|
+
if(param.annotations?.chaptering){
|
|
175
|
+
this.playerChaptering = await octopusApi.fetchDataPublic<Chaptering>(4, (param.annotations.chaptering as string));
|
|
176
|
+
}
|
|
175
177
|
}
|
|
176
178
|
return;
|
|
177
179
|
}
|