stormcloud-video-player 0.7.21 → 0.7.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/dist/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +7 -5
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +7 -5
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +3 -3
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +3 -3
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +3 -3
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +7 -5
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -3044,7 +3044,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3044
3044
|
this.hls.on(import_hls.default.Events.FRAG_CHANGED, function(_evt, data) {
|
|
3045
3045
|
var frag = data === null || data === void 0 ? void 0 : data.frag;
|
|
3046
3046
|
if (!frag) return;
|
|
3047
|
-
if (_this.lastAdInsertionPoint && !_this.inAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
|
|
3047
|
+
if (_this.lastAdInsertionPoint && !_this.inAdBreak && !_this.pendingAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
|
|
3048
3048
|
var segmentName = _this.lastAdInsertionPoint.segment_ts_name;
|
|
3049
3049
|
if (_this.fragmentMatchesSegment(frag, segmentName)) {
|
|
3050
3050
|
var _ref;
|
|
@@ -3915,7 +3915,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3915
3915
|
]);
|
|
3916
3916
|
return [
|
|
3917
3917
|
4,
|
|
3918
|
-
fetch("https://adstorm.co/api-adstorm-dev/adstorm/
|
|
3918
|
+
fetch("https://adstorm.co/api-adstorm-dev/adstorm/adcision/channels/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
|
|
3919
3919
|
];
|
|
3920
3920
|
case 2:
|
|
3921
3921
|
resp = _state.sent();
|
|
@@ -3936,7 +3936,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3936
3936
|
this.pushAdInsertionDebug("api_response", data.segment_ts_name, {
|
|
3937
3937
|
offsetSeconds: data.offset_seconds,
|
|
3938
3938
|
updatedAt: data.updated_at,
|
|
3939
|
-
detail: "
|
|
3939
|
+
detail: "ch=".concat(data.channel_id, " id=").concat(data.id)
|
|
3940
3940
|
});
|
|
3941
3941
|
if (segmentChanged && (this.pendingAdBreak || this.adInsertionOffsetTimerId != null)) {
|
|
3942
3942
|
this.clearAdInsertionOffsetTimer();
|