stormcloud-video-player 0.7.21 → 0.7.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/dist/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +5 -4
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +5 -4
- 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 +5 -4
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
package/lib/players/index.cjs
CHANGED
|
@@ -3080,7 +3080,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3080
3080
|
this.hls.on(import_hls.default.Events.FRAG_CHANGED, function(_evt, data) {
|
|
3081
3081
|
var frag = data === null || data === void 0 ? void 0 : data.frag;
|
|
3082
3082
|
if (!frag) return;
|
|
3083
|
-
if (_this.lastAdInsertionPoint && !_this.inAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
|
|
3083
|
+
if (_this.lastAdInsertionPoint && !_this.inAdBreak && !_this.pendingAdBreak && _this.lastAdInsertionPoint.updated_at !== _this.processedAdInsertionUpdatedAt) {
|
|
3084
3084
|
var segmentName = _this.lastAdInsertionPoint.segment_ts_name;
|
|
3085
3085
|
if (_this.fragmentMatchesSegment(frag, segmentName)) {
|
|
3086
3086
|
var _ref;
|
|
@@ -3951,7 +3951,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3951
3951
|
]);
|
|
3952
3952
|
return [
|
|
3953
3953
|
4,
|
|
3954
|
-
fetch("https://adstorm.co/api-adstorm-dev/adstorm/
|
|
3954
|
+
fetch("https://adstorm.co/api-adstorm-dev/adstorm/adcision/channels/".concat(encodeURIComponent(this.config.projectId), "/ad-insertion-point"))
|
|
3955
3955
|
];
|
|
3956
3956
|
case 2:
|
|
3957
3957
|
resp = _state.sent();
|
|
@@ -3972,7 +3972,7 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
|
|
|
3972
3972
|
this.pushAdInsertionDebug("api_response", data.segment_ts_name, {
|
|
3973
3973
|
offsetSeconds: data.offset_seconds,
|
|
3974
3974
|
updatedAt: data.updated_at,
|
|
3975
|
-
detail: "
|
|
3975
|
+
detail: "ch=".concat(data.channel_id, " id=").concat(data.id)
|
|
3976
3976
|
});
|
|
3977
3977
|
if (segmentChanged && (this.pendingAdBreak || this.adInsertionOffsetTimerId != null)) {
|
|
3978
3978
|
this.clearAdInsertionOffsetTimer();
|