@saooti/octopus-sdk 39.0.21 → 39.0.22
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
|
@@ -66,12 +66,17 @@ export const playerStitching = defineComponent({
|
|
|
66
66
|
if(timeRemaining < 0){
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
this.radioInterval = setTimeout(
|
|
70
|
-
|
|
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;
|