stormcloud-video-player 0.7.13 → 0.7.14

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.
@@ -4031,14 +4031,21 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
4031
4031
  }
4032
4032
  }
4033
4033
  },
4034
+ {
4035
+ key: "extractTsFilename",
4036
+ value: function extractTsFilename(url) {
4037
+ var _parts_;
4038
+ var clean = url.includes("?") ? url.slice(0, url.indexOf("?")) : url;
4039
+ var parts = clean.split("/");
4040
+ return (_parts_ = parts[parts.length - 1]) !== null && _parts_ !== void 0 ? _parts_ : clean;
4041
+ }
4042
+ },
4034
4043
  {
4035
4044
  key: "fragmentMatchesSegment",
4036
4045
  value: function fragmentMatchesSegment(frag, segmentName) {
4037
- var _rawUrl_split_;
4038
4046
  var rawUrl = (frag === null || frag === void 0 ? void 0 : frag.url) || (frag === null || frag === void 0 ? void 0 : frag.relurl) || "";
4039
- var url = (_rawUrl_split_ = rawUrl.split("?")[0]) !== null && _rawUrl_split_ !== void 0 ? _rawUrl_split_ : "";
4040
- var name = segmentName.startsWith("/") ? segmentName : "/" + segmentName;
4041
- return url.endsWith(name) || url.includes(name);
4047
+ if (!rawUrl) return false;
4048
+ return this.extractTsFilename(rawUrl) === this.extractTsFilename(segmentName);
4042
4049
  }
4043
4050
  },
4044
4051
  {