@saooti/octopus-sdk 40.2.13 → 40.2.14

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": "40.2.13",
3
+ "version": "40.2.14",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -30,7 +30,7 @@ export default defineComponent({
30
30
  props: {
31
31
  hlsUrl: { default: "", type: String },
32
32
  responsive: { default: false, type: Boolean },
33
- isSecured: { default: true, type: Boolean }, //TODO
33
+ isSecured: { default: true, type: Boolean },
34
34
  },
35
35
  emits: ["changeValid"],
36
36
 
@@ -177,9 +177,11 @@ export default defineComponent({
177
177
  this.videoElement.onseeking = async () => {
178
178
  this.playerUpdateSeekTime(this.videoElement.currentTime);
179
179
  };
180
- /* if ("SECURED" === playerStore.playerLive?.organisation?.privacy && authStore.authParam.accessToken) {
181
- } */
182
- //TODO
180
+ if (this.isSecured && this.authParam.accessToken) {
181
+ this.videoElement.src = this.hlsUrl + "access_token="+this.authParam.accessToken;
182
+ }else{
183
+ this.videoElement.src = this.hlsUrl;
184
+ }
183
185
  this.videoElement.src = this.hlsUrl;
184
186
  },
185
187
  videoClean(): void {