stormcloud-video-player 0.8.71 → 0.8.72
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/StormcloudPlayer.cjs +9 -3
- package/lib/StormcloudPlayer.cjs.map +1 -1
- package/lib/index.cjs +9 -3
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +9 -3
- package/lib/index.js.map +1 -1
- package/lib/player/HlsEngine.cjs +9 -3
- package/lib/player/HlsEngine.cjs.map +1 -1
- package/lib/player/Scte35Parser.cjs +8 -0
- package/lib/player/Scte35Parser.cjs.map +1 -1
- package/lib/player/Scte35Parser.d.cts +2 -1
- package/lib/player/StormcloudVideoPlayer.cjs +9 -3
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +9 -3
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +9 -3
- package/lib/players/index.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +9 -3
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -6624,6 +6624,10 @@ function toNumber(val) {
|
|
|
6624
6624
|
var n = typeof val === "string" ? parseFloat(val) : Number(val);
|
|
6625
6625
|
return Number.isNaN(n) ? void 0 : n;
|
|
6626
6626
|
}
|
|
6627
|
+
function getDateRangeDurationSeconds(attrs) {
|
|
6628
|
+
var _toNumber;
|
|
6629
|
+
return (_toNumber = toNumber(attrs["DURATION"])) !== null && _toNumber !== void 0 ? _toNumber : toNumber(attrs["PLANNED-DURATION"]);
|
|
6630
|
+
}
|
|
6627
6631
|
function isManifestBasedMarker(marker) {
|
|
6628
6632
|
var raw = marker.raw;
|
|
6629
6633
|
if (!raw) return false;
|
|
@@ -8989,11 +8993,13 @@ var HlsEngine = /*#__PURE__*/ function() {
|
|
|
8989
8993
|
}
|
|
8990
8994
|
}
|
|
8991
8995
|
if (!tag) continue;
|
|
8996
|
+
if (tag.includes("EXT-X-CUE-OUT-CONT")) continue;
|
|
8992
8997
|
if (tag.includes("EXT-X-CUE-OUT") || tag.includes("EXT-X-DATERANGE")) {
|
|
8993
|
-
var
|
|
8998
|
+
var isDateRange = tag.includes("EXT-X-DATERANGE");
|
|
8999
|
+
var attrs = isDateRange ? parseAttributeList(value) : {};
|
|
8994
9000
|
var hasScteOut = tag.includes("EXT-X-CUE-OUT") || "SCTE35-OUT" in attrs || attrs["SCTE35-OUT"] !== void 0;
|
|
8995
9001
|
if (hasScteOut) {
|
|
8996
|
-
var durationSeconds = parseCueOutDuration(value);
|
|
9002
|
+
var durationSeconds = isDateRange ? getDateRangeDurationSeconds(attrs) : parseCueOutDuration(value);
|
|
8997
9003
|
var marker = _object_spread_props(_object_spread({
|
|
8998
9004
|
type: "start"
|
|
8999
9005
|
}, durationSeconds !== void 0 ? {
|
|
@@ -9167,7 +9173,7 @@ var HlsEngine = /*#__PURE__*/ function() {
|
|
|
9167
9173
|
var hasScteOut = "SCTE35-OUT" in attrs || attrs["SCTE35-OUT"] !== void 0;
|
|
9168
9174
|
var hasScteIn = "SCTE35-IN" in attrs || attrs["SCTE35-IN"] !== void 0;
|
|
9169
9175
|
var klass = String((_attrs_CLASS = attrs["CLASS"]) !== null && _attrs_CLASS !== void 0 ? _attrs_CLASS : "");
|
|
9170
|
-
var duration =
|
|
9176
|
+
var duration = getDateRangeDurationSeconds(attrs);
|
|
9171
9177
|
if (hasScteOut || /com\.apple\.hls\.cue/i.test(klass)) {
|
|
9172
9178
|
var marker2 = _object_spread_props(_object_spread({
|
|
9173
9179
|
type: "start"
|