@saooti/octopus-sdk 31.0.44 → 31.0.45

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 CHANGED
@@ -635,3 +635,4 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
635
635
  * 31.0.42 #11222
636
636
  * 31.0.43 #10963
637
637
  * 31.0.44 Début CRUD API
638
+ * 31.0.45 Live
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "31.0.44",
3
+ "version": "31.0.45",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -69,8 +69,8 @@ import ClassicLoading from '../../form/ClassicLoading.vue';
69
69
  const PHONE_WIDTH = 960;
70
70
  import { state } from '../../../store/paramStore';
71
71
  import { Podcast } from '@/store/class/general/podcast';
72
+ import { Playlist } from '@/store/class/general/playlist';
72
73
  import { defineComponent } from 'vue'
73
- import { Playlist } from '@saooti/octopus-api/class/playlist';
74
74
  export default defineComponent({
75
75
  name: 'PodcastPlaylistInlineList',
76
76
 
@@ -150,7 +150,7 @@ export default defineComponent({
150
150
  this.loading = true;
151
151
  this.playlist = await octopusApi.fetchData<Playlist>(0, 'playlist/'+this.playlistId);
152
152
  this.allPodcasts = await octopusApi.fetchData<Array<Podcast>>(0, 'playlist/'+this.playlistId+'/content');
153
- if (!((state.generalParameters.authenticated && state.generalParameters.organisationId === this.playlist.organisation.id) ||
153
+ if (!((state.generalParameters.authenticated && state.generalParameters.organisationId === this.playlist?.organisation?.id) ||
154
154
  state.generalParameters.isAdmin)) {
155
155
  this.allPodcasts = this.allPodcasts.filter((p: Podcast|null) => {
156
156
  return (
@@ -56,14 +56,14 @@ export const playerLive = defineComponent({
56
56
  reject('Hls is not supported ! ');
57
57
  }
58
58
  let hls = new Hls();
59
- if(this.$store.state.authentication.isAuthenticated && this.$store.state.oAuthParam.accessToken){
59
+ /* if(this.$store.state.authentication.isAuthenticated && this.$store.state.oAuthParam.accessToken){
60
60
  hls = new Hls({xhrSetup:
61
61
  (xhr: XMLHttpRequest) => {
62
62
  xhr.setRequestHeader("Authorization", "Bearer " + this.$store.state.oAuthParam.accessToken);
63
63
  }
64
64
  }
65
65
  );
66
- }
66
+ } */
67
67
  hls.on(Hls.Events.MANIFEST_PARSED, async () => {
68
68
  if(!this.live){ return; }
69
69
  let downloadId = null;