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
|
@@ -6401,6 +6401,10 @@ function toNumber(val) {
|
|
|
6401
6401
|
var n = typeof val === "string" ? parseFloat(val) : Number(val);
|
|
6402
6402
|
return Number.isNaN(n) ? void 0 : n;
|
|
6403
6403
|
}
|
|
6404
|
+
function getDateRangeDurationSeconds(attrs) {
|
|
6405
|
+
var _toNumber;
|
|
6406
|
+
return (_toNumber = toNumber(attrs["DURATION"])) !== null && _toNumber !== void 0 ? _toNumber : toNumber(attrs["PLANNED-DURATION"]);
|
|
6407
|
+
}
|
|
6404
6408
|
function isManifestBasedMarker(marker) {
|
|
6405
6409
|
var raw = marker.raw;
|
|
6406
6410
|
if (!raw) return false;
|
|
@@ -8766,11 +8770,13 @@ var HlsEngine = /*#__PURE__*/ function() {
|
|
|
8766
8770
|
}
|
|
8767
8771
|
}
|
|
8768
8772
|
if (!tag) continue;
|
|
8773
|
+
if (tag.includes("EXT-X-CUE-OUT-CONT")) continue;
|
|
8769
8774
|
if (tag.includes("EXT-X-CUE-OUT") || tag.includes("EXT-X-DATERANGE")) {
|
|
8770
|
-
var
|
|
8775
|
+
var isDateRange = tag.includes("EXT-X-DATERANGE");
|
|
8776
|
+
var attrs = isDateRange ? parseAttributeList(value) : {};
|
|
8771
8777
|
var hasScteOut = tag.includes("EXT-X-CUE-OUT") || "SCTE35-OUT" in attrs || attrs["SCTE35-OUT"] !== void 0;
|
|
8772
8778
|
if (hasScteOut) {
|
|
8773
|
-
var durationSeconds = parseCueOutDuration(value);
|
|
8779
|
+
var durationSeconds = isDateRange ? getDateRangeDurationSeconds(attrs) : parseCueOutDuration(value);
|
|
8774
8780
|
var marker = _object_spread_props(_object_spread({
|
|
8775
8781
|
type: "start"
|
|
8776
8782
|
}, durationSeconds !== void 0 ? {
|
|
@@ -8944,7 +8950,7 @@ var HlsEngine = /*#__PURE__*/ function() {
|
|
|
8944
8950
|
var hasScteOut = "SCTE35-OUT" in attrs || attrs["SCTE35-OUT"] !== void 0;
|
|
8945
8951
|
var hasScteIn = "SCTE35-IN" in attrs || attrs["SCTE35-IN"] !== void 0;
|
|
8946
8952
|
var klass = String((_attrs_CLASS = attrs["CLASS"]) !== null && _attrs_CLASS !== void 0 ? _attrs_CLASS : "");
|
|
8947
|
-
var duration =
|
|
8953
|
+
var duration = getDateRangeDurationSeconds(attrs);
|
|
8948
8954
|
if (hasScteOut || /com\.apple\.hls\.cue/i.test(klass)) {
|
|
8949
8955
|
var marker2 = _object_spread_props(_object_spread({
|
|
8950
8956
|
type: "start"
|