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
|
@@ -6447,6 +6447,10 @@ function toNumber(val) {
|
|
|
6447
6447
|
var n = typeof val === "string" ? parseFloat(val) : Number(val);
|
|
6448
6448
|
return Number.isNaN(n) ? void 0 : n;
|
|
6449
6449
|
}
|
|
6450
|
+
function getDateRangeDurationSeconds(attrs) {
|
|
6451
|
+
var _toNumber;
|
|
6452
|
+
return (_toNumber = toNumber(attrs["DURATION"])) !== null && _toNumber !== void 0 ? _toNumber : toNumber(attrs["PLANNED-DURATION"]);
|
|
6453
|
+
}
|
|
6450
6454
|
function isManifestBasedMarker(marker) {
|
|
6451
6455
|
var raw = marker.raw;
|
|
6452
6456
|
if (!raw) return false;
|
|
@@ -8812,11 +8816,13 @@ var HlsEngine = /*#__PURE__*/ function() {
|
|
|
8812
8816
|
}
|
|
8813
8817
|
}
|
|
8814
8818
|
if (!tag) continue;
|
|
8819
|
+
if (tag.includes("EXT-X-CUE-OUT-CONT")) continue;
|
|
8815
8820
|
if (tag.includes("EXT-X-CUE-OUT") || tag.includes("EXT-X-DATERANGE")) {
|
|
8816
|
-
var
|
|
8821
|
+
var isDateRange = tag.includes("EXT-X-DATERANGE");
|
|
8822
|
+
var attrs = isDateRange ? parseAttributeList(value) : {};
|
|
8817
8823
|
var hasScteOut = tag.includes("EXT-X-CUE-OUT") || "SCTE35-OUT" in attrs || attrs["SCTE35-OUT"] !== void 0;
|
|
8818
8824
|
if (hasScteOut) {
|
|
8819
|
-
var durationSeconds = parseCueOutDuration(value);
|
|
8825
|
+
var durationSeconds = isDateRange ? getDateRangeDurationSeconds(attrs) : parseCueOutDuration(value);
|
|
8820
8826
|
var marker = _object_spread_props(_object_spread({
|
|
8821
8827
|
type: "start"
|
|
8822
8828
|
}, durationSeconds !== void 0 ? {
|
|
@@ -8990,7 +8996,7 @@ var HlsEngine = /*#__PURE__*/ function() {
|
|
|
8990
8996
|
var hasScteOut = "SCTE35-OUT" in attrs || attrs["SCTE35-OUT"] !== void 0;
|
|
8991
8997
|
var hasScteIn = "SCTE35-IN" in attrs || attrs["SCTE35-IN"] !== void 0;
|
|
8992
8998
|
var klass = String((_attrs_CLASS = attrs["CLASS"]) !== null && _attrs_CLASS !== void 0 ? _attrs_CLASS : "");
|
|
8993
|
-
var duration =
|
|
8999
|
+
var duration = getDateRangeDurationSeconds(attrs);
|
|
8994
9000
|
if (hasScteOut || /com\.apple\.hls\.cue/i.test(klass)) {
|
|
8995
9001
|
var marker2 = _object_spread_props(_object_spread({
|
|
8996
9002
|
type: "start"
|