@saooti/octopus-sdk 39.0.21 → 39.0.23

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": "39.0.21",
3
+ "version": "39.0.23",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -7,7 +7,7 @@
7
7
  class="octopus-popover"
8
8
  :class="[onlyClick ? 'octopus-dropdown' : '', popoverClass]"
9
9
  :style="positionInlineStyle"
10
- @focusout="clearDataBlur"
10
+ @blur="clearDataBlur"
11
11
  @mouseenter="overPopover = true"
12
12
  @mouseleave="
13
13
  overPopover = false;
@@ -40,6 +40,7 @@ export default defineComponent({
40
40
  topPos: { type: Boolean, default: false },
41
41
  popoverClass: { type: String, default: undefined },
42
42
  },
43
+ emits: ["updateVisibility"],
43
44
  data() {
44
45
  return {
45
46
  show: false as boolean,
@@ -58,6 +59,11 @@ export default defineComponent({
58
59
  return `left: ${this.posX}px; top: ${this.posY}px;`;
59
60
  },
60
61
  },
62
+ watch:{
63
+ show(){
64
+ this.$emit('updateVisibility', this.show);
65
+ }
66
+ },
61
67
  mounted() {
62
68
  this.init();
63
69
  },
@@ -66,12 +66,17 @@ export const playerStitching = defineComponent({
66
66
  if(timeRemaining < 0){
67
67
  return;
68
68
  }
69
- this.radioInterval = setTimeout(async () => {
70
- //If pause when ad needs to be played then skipped (TO THINK)
71
- if("PAUSED"===this.playerStatus){return;}
72
- this.onRequestAd(await this.getVastUrl(this.playerRadio?.nextAdvertising?.tag ??"5e385e1b51c86"));
69
+ this.radioInterval = setTimeout(() => {
70
+ this.radioIntervalExecute();
73
71
  }, timeRemaining);
74
72
  },
73
+ async radioIntervalExecute(){
74
+ //If pause when ad needs to be played then skipped (TO THINK)
75
+ if("PAUSED"===this.playerStatus){return;}
76
+ const vastUrl = await this.getVastUrl(this.playerRadio?.nextAdvertising?.tag ??"5e385e1b51c86");
77
+ console.log("vastUrl "+vastUrl);
78
+ this.onRequestAd(vastUrl);
79
+ },
75
80
  clearRadioInterval() {
76
81
  clearInterval(this.radioInterval as unknown as number);
77
82
  this.radioInterval = undefined;
@@ -185,7 +190,6 @@ export const playerStitching = defineComponent({
185
190
  }
186
191
  const parameters = this.getUriSearchParams({
187
192
  adCount: 1,
188
- ua:navigator.userAgent,
189
193
  pageUrl:document.referrer,
190
194
  keywords:keywords
191
195
  });