stormcloud-video-player 0.8.36 → 0.8.37

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.
@@ -16,6 +16,7 @@ interface AdBreakOrchestratorHost {
16
16
  shouldContinueLiveStreamDuringAds(): boolean;
17
17
  isLiveStream(): boolean;
18
18
  getLiveSyncPosition(): number | undefined;
19
+ restartHlsLoad(position: number): void;
19
20
  generatePodVastUrl(baseUrl: string, breakDurationMs?: number): string;
20
21
  }
21
22
  declare class AdBreakOrchestrator {
@@ -58,6 +59,7 @@ declare class AdBreakOrchestrator {
58
59
  playSingleAd(vastTagUrl: string): Promise<void>;
59
60
  private showPlaceholderAndWaitForAds;
60
61
  handleAdPodComplete(): void;
62
+ private monitorLiveResumeStall;
61
63
  private resumeContentPlayback;
62
64
  handleAdFailure(): void;
63
65
  }
@@ -1045,7 +1045,7 @@ function removeBrokenAppNameOrphans(params, appName) {
1045
1045
  try {
1046
1046
  for(var _iterator = appName.split("&").slice(1)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1047
1047
  var suffix = _step.value;
1048
- var trimmed = suffix.trimStart();
1048
+ var trimmed = suffix.replace(/^\s+/, "");
1049
1049
  if (!trimmed) continue;
1050
1050
  toDelete.push(suffix, " ".concat(trimmed), trimmed);
1051
1051
  }
@@ -1099,7 +1099,7 @@ function normalizeVastTagUrl(raw) {
1099
1099
  });
1100
1100
  if (orphanFragments.length > 0) {
1101
1101
  var reconstructed = [
1102
- anValue.trimEnd()
1102
+ anValue.replace(/\s+$/, "")
1103
1103
  ].concat(_to_consumable_array(orphanFragments)).filter(Boolean).join(" & ");
1104
1104
  url.searchParams.forEach(function(_value, key) {
1105
1105
  if (key && INVALID_VAST_PARAM_KEY.test(key)) {