@saooti/octopus-sdk 31.0.16 → 31.0.19
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/README.md +3 -0
- package/package.json +1 -1
- package/src/assets/form.scss +3 -0
- package/src/assets/general.scss +3 -0
- package/src/assets/octopus-library.scss +2 -1
- package/src/components/display/podcasts/PodcastImage.vue +1 -0
- package/src/components/display/sharing/ShareButtons.vue +1 -3
- package/src/components/misc/Player.vue +12 -1
- package/src/components/misc/modal/QrCodeModal.vue +2 -25
package/README.md
CHANGED
package/package.json
CHANGED
package/src/assets/form.scss
CHANGED
package/src/assets/general.scss
CHANGED
|
@@ -162,7 +162,6 @@
|
|
|
162
162
|
/>
|
|
163
163
|
</a>
|
|
164
164
|
<a
|
|
165
|
-
v-if="podcast ||emission"
|
|
166
165
|
rel="noopener"
|
|
167
166
|
target="_blank"
|
|
168
167
|
:class="[
|
|
@@ -226,8 +225,7 @@
|
|
|
226
225
|
<QrCodeModal
|
|
227
226
|
v-if="qrCode"
|
|
228
227
|
:closable="true"
|
|
229
|
-
:
|
|
230
|
-
:emission="emission"
|
|
228
|
+
:url-page="urlPage"
|
|
231
229
|
@close="qrCode = false"
|
|
232
230
|
/>
|
|
233
231
|
<Snackbar
|
|
@@ -151,6 +151,9 @@ export default defineComponent({
|
|
|
151
151
|
'distributorId=' + this.$store.state.authentication.organisationId
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
|
+
if("SECURED" === this.podcast.organisation.privacy && this.$store.state.authentication.isAuthenticated && this.$store.state.oAuthParam.accessToken){
|
|
155
|
+
parameters.push('access_token='+this.$store.state.oAuthParam.accessToken);
|
|
156
|
+
}
|
|
154
157
|
return this.podcast.audioUrl + '?' + parameters.join('&');
|
|
155
158
|
},
|
|
156
159
|
organisationId(): string|undefined {
|
|
@@ -369,7 +372,15 @@ export default defineComponent({
|
|
|
369
372
|
if (!Hls.isSupported()) {
|
|
370
373
|
reject('Hls is not supported ! ');
|
|
371
374
|
}
|
|
372
|
-
|
|
375
|
+
let hls = new Hls();
|
|
376
|
+
if(this.$store.state.authentication.isAuthenticated && this.$store.state.oAuthParam.accessToken){
|
|
377
|
+
hls = new Hls({xhrSetup:
|
|
378
|
+
(xhr: any) => {
|
|
379
|
+
xhr.setRequestHeader("Authorization", "Bearer " + this.$store.state.oAuthParam.accessToken);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
);
|
|
383
|
+
}
|
|
373
384
|
hls.on(Hls.Events.MANIFEST_PARSED, async () => {
|
|
374
385
|
if(!this.live){ return; }
|
|
375
386
|
let downloadId = null;
|
|
@@ -34,8 +34,6 @@
|
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
36
|
<script lang="ts">
|
|
37
|
-
import { Podcast } from '@/store/class/general/podcast';
|
|
38
|
-
import { Emission } from '@/store/class/general/emission';
|
|
39
37
|
import QrCode from '../../display/sharing/QrCode.vue';
|
|
40
38
|
import { defineComponent } from 'vue'
|
|
41
39
|
export default defineComponent({
|
|
@@ -46,8 +44,7 @@ export default defineComponent({
|
|
|
46
44
|
},
|
|
47
45
|
|
|
48
46
|
props: {
|
|
49
|
-
|
|
50
|
-
emission: { default: undefined, type: Object as ()=> Emission},
|
|
47
|
+
urlPage: { default: undefined, type: String},
|
|
51
48
|
},
|
|
52
49
|
|
|
53
50
|
emits: ['close'],
|
|
@@ -56,27 +53,7 @@ export default defineComponent({
|
|
|
56
53
|
return {
|
|
57
54
|
};
|
|
58
55
|
},
|
|
59
|
-
|
|
60
|
-
computed: {
|
|
61
|
-
urlPage(): string{
|
|
62
|
-
if(window.location.href.includes('?productor')){
|
|
63
|
-
return window.location.href;
|
|
64
|
-
}
|
|
65
|
-
if("" !== window.location.search){
|
|
66
|
-
return window.location.href + "&productor=" + this.productor;
|
|
67
|
-
}
|
|
68
|
-
return window.location.href + "?productor=" + this.productor;
|
|
69
|
-
},
|
|
70
|
-
productor(): string{
|
|
71
|
-
if(this.podcast){
|
|
72
|
-
return this.podcast.organisation.id;
|
|
73
|
-
}
|
|
74
|
-
if(this.emission){
|
|
75
|
-
return this.emission.orga.id;
|
|
76
|
-
}
|
|
77
|
-
return "";
|
|
78
|
-
},
|
|
79
|
-
},
|
|
56
|
+
|
|
80
57
|
methods:{
|
|
81
58
|
closePopup(event: { preventDefault: () => void }): void {
|
|
82
59
|
event.preventDefault();
|