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.
@@ -3993,14 +3993,21 @@ var StormcloudVideoPlayer = /*#__PURE__*/ function() {
3993
3993
  }
3994
3994
  }
3995
3995
  },
3996
+ {
3997
+ key: "extractTsFilename",
3998
+ value: function extractTsFilename(url) {
3999
+ var _parts_;
4000
+ var clean = url.includes("?") ? url.slice(0, url.indexOf("?")) : url;
4001
+ var parts = clean.split("/");
4002
+ return (_parts_ = parts[parts.length - 1]) !== null && _parts_ !== void 0 ? _parts_ : clean;
4003
+ }
4004
+ },
3996
4005
  {
3997
4006
  key: "fragmentMatchesSegment",
3998
4007
  value: function fragmentMatchesSegment(frag, segmentName) {
3999
- var _rawUrl_split_;
4000
4008
  var rawUrl = (frag === null || frag === void 0 ? void 0 : frag.url) || (frag === null || frag === void 0 ? void 0 : frag.relurl) || "";
4001
- var url = (_rawUrl_split_ = rawUrl.split("?")[0]) !== null && _rawUrl_split_ !== void 0 ? _rawUrl_split_ : "";
4002
- var name = segmentName.startsWith("/") ? segmentName : "/" + segmentName;
4003
- return url.endsWith(name) || url.includes(name);
4009
+ if (!rawUrl) return false;
4010
+ return this.extractTsFilename(rawUrl) === this.extractTsFilename(segmentName);
4004
4011
  }
4005
4012
  },
4006
4013
  {