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.
@@ -4081,14 +4081,21 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
4081
4081
  }
4082
4082
  }
4083
4083
  },
4084
+ {
4085
+ key: "extractTsFilename",
4086
+ value: function extractTsFilename(url) {
4087
+ var _parts_;
4088
+ var clean = url.includes("?") ? url.slice(0, url.indexOf("?")) : url;
4089
+ var parts = clean.split("/");
4090
+ return (_parts_ = parts[parts.length - 1]) !== null && _parts_ !== void 0 ? _parts_ : clean;
4091
+ }
4092
+ },
4084
4093
  {
4085
4094
  key: "fragmentMatchesSegment",
4086
4095
  value: function fragmentMatchesSegment(frag, segmentName) {
4087
- var _rawUrl_split_;
4088
4096
  var rawUrl = (frag === null || frag === void 0 ? void 0 : frag.url) || (frag === null || frag === void 0 ? void 0 : frag.relurl) || "";
4089
- var url = (_rawUrl_split_ = rawUrl.split("?")[0]) !== null && _rawUrl_split_ !== void 0 ? _rawUrl_split_ : "";
4090
- var name = segmentName.startsWith("/") ? segmentName : "/" + segmentName;
4091
- return url.endsWith(name) || url.includes(name);
4097
+ if (!rawUrl) return false;
4098
+ return this.extractTsFilename(rawUrl) === this.extractTsFilename(segmentName);
4092
4099
  }
4093
4100
  },
4094
4101
  {