stormcloud-video-player 0.7.14 → 0.7.17

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/lib/index.d.cts CHANGED
@@ -157,6 +157,7 @@ declare class StormcloudVideoPlayer {
157
157
  private pendingAdBreak;
158
158
  private prefetchTimerId;
159
159
  private savedMutedStateBeforeAd;
160
+ private adLayerInitialized;
160
161
  private consecutiveFailures;
161
162
  private readonly maxConsecutiveFailures;
162
163
  private lastAdRequestTime;
@@ -192,6 +193,8 @@ declare class StormcloudVideoPlayer {
192
193
  getRemainingAdSeconds(): number;
193
194
  isAdPlaying(): boolean;
194
195
  isShowingAds(): boolean;
196
+ private initializeAdLayer;
197
+ setDisableAds(disabled: boolean): void;
195
198
  private syncMainContentAudioWhenVisible;
196
199
  getStreamType(): "hls" | "other";
197
200
  shouldShowNativeControls(): boolean;
@@ -267,6 +270,11 @@ type StormcloudVideoPlayerProps = Omit<StormcloudVideoPlayerConfig, "videoElemen
267
270
  wrapperStyle?: React.CSSProperties;
268
271
  licenseKey?: string;
269
272
  swirlProjectId?: number;
273
+ disableOverlays?: boolean;
274
+ showAdsControl?: boolean;
275
+ showOverlaysControl?: boolean;
276
+ showAiContextControl?: boolean;
277
+ showDebugControl?: boolean;
270
278
  };
271
279
  declare const StormcloudVideoPlayerComponent: React.FC<StormcloudVideoPlayerProps>;
272
280
 
@@ -4027,6 +4035,14 @@ interface SwirlScrollerConfig {
4027
4035
  auto_refresh?: boolean;
4028
4036
  use_custom_text?: boolean;
4029
4037
  custom_text?: string;
4038
+ label?: string;
4039
+ label_line2?: string;
4040
+ label_color?: string;
4041
+ label_text_color?: string;
4042
+ accent_color?: string;
4043
+ show_accent_line?: boolean;
4044
+ separator_char?: string;
4045
+ preset?: string;
4030
4046
  }
4031
4047
  type SwirlOverlayType = "image" | "text" | "scroller" | "shape" | "score_bug" | "lower_third" | "qr_code" | "coming_up_next" | "contextual_trigger" | "odds_betting" | "breaking_news" | "countdown";
4032
4048
  interface SwirlOverlay {
package/lib/index.d.ts CHANGED
@@ -157,6 +157,7 @@ declare class StormcloudVideoPlayer {
157
157
  private pendingAdBreak;
158
158
  private prefetchTimerId;
159
159
  private savedMutedStateBeforeAd;
160
+ private adLayerInitialized;
160
161
  private consecutiveFailures;
161
162
  private readonly maxConsecutiveFailures;
162
163
  private lastAdRequestTime;
@@ -192,6 +193,8 @@ declare class StormcloudVideoPlayer {
192
193
  getRemainingAdSeconds(): number;
193
194
  isAdPlaying(): boolean;
194
195
  isShowingAds(): boolean;
196
+ private initializeAdLayer;
197
+ setDisableAds(disabled: boolean): void;
195
198
  private syncMainContentAudioWhenVisible;
196
199
  getStreamType(): "hls" | "other";
197
200
  shouldShowNativeControls(): boolean;
@@ -267,6 +270,11 @@ type StormcloudVideoPlayerProps = Omit<StormcloudVideoPlayerConfig, "videoElemen
267
270
  wrapperStyle?: React.CSSProperties;
268
271
  licenseKey?: string;
269
272
  swirlProjectId?: number;
273
+ disableOverlays?: boolean;
274
+ showAdsControl?: boolean;
275
+ showOverlaysControl?: boolean;
276
+ showAiContextControl?: boolean;
277
+ showDebugControl?: boolean;
270
278
  };
271
279
  declare const StormcloudVideoPlayerComponent: React.FC<StormcloudVideoPlayerProps>;
272
280
 
@@ -4027,6 +4035,14 @@ interface SwirlScrollerConfig {
4027
4035
  auto_refresh?: boolean;
4028
4036
  use_custom_text?: boolean;
4029
4037
  custom_text?: string;
4038
+ label?: string;
4039
+ label_line2?: string;
4040
+ label_color?: string;
4041
+ label_text_color?: string;
4042
+ accent_color?: string;
4043
+ show_accent_line?: boolean;
4044
+ separator_char?: string;
4045
+ preset?: string;
4030
4046
  }
4031
4047
  type SwirlOverlayType = "image" | "text" | "scroller" | "shape" | "score_bug" | "lower_third" | "qr_code" | "coming_up_next" | "contextual_trigger" | "odds_betting" | "breaking_news" | "countdown";
4032
4048
  interface SwirlOverlay {