stormcloud-video-player 0.2.17 → 0.2.19

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
@@ -24,6 +24,8 @@ interface StormcloudVideoPlayerConfig {
24
24
  immediateManifestAds?: boolean;
25
25
  debugAdTiming?: boolean;
26
26
  adFailsafeTimeoutMs?: number;
27
+ adBreakCheckIntervalMs?: number;
28
+ maxAdBreakExtensionMs?: number;
27
29
  showCustomControls?: boolean;
28
30
  onVolumeToggle?: () => void;
29
31
  onFullscreenToggle?: () => void;
@@ -32,6 +34,7 @@ interface StormcloudVideoPlayerConfig {
32
34
  adPlayerType?: 'ima' | 'hls';
33
35
  vastTagUrl?: string;
34
36
  vastMode?: 'adstorm' | 'default';
37
+ minSegmentsBeforePlay?: number;
35
38
  }
36
39
  interface ImaController {
37
40
  initialize: () => void;
@@ -116,6 +119,9 @@ declare class StormcloudVideoPlayer {
116
119
  private isLiveStream;
117
120
  private nativeHlsMode;
118
121
  private videoSrcProtection;
122
+ private bufferedSegmentsCount;
123
+ private shouldAutoplayAfterBuffering;
124
+ private hasInitialBufferCompleted;
119
125
  constructor(config: StormcloudVideoPlayerConfig);
120
126
  private createAdPlayer;
121
127
  load(): Promise<void>;
@@ -161,6 +167,7 @@ declare class StormcloudVideoPlayer {
161
167
  toggleMute(): void;
162
168
  toggleFullscreen(): Promise<void>;
163
169
  isMuted(): boolean;
170
+ setMuted(muted: boolean): void;
164
171
  isFullscreen(): boolean;
165
172
  isLive(): boolean;
166
173
  get videoElement(): HTMLVideoElement;
@@ -209,6 +216,7 @@ interface BaseStormcloudPlayerProps {
209
216
  showCustomControls?: boolean;
210
217
  licenseKey?: string;
211
218
  adFailsafeTimeoutMs?: number;
219
+ minSegmentsBeforePlay?: number;
212
220
  onReady?: (player: StormcloudVideoPlayer) => void;
213
221
  onStart?: () => void;
214
222
  onPlay?: () => void;
package/lib/index.d.ts CHANGED
@@ -24,6 +24,8 @@ interface StormcloudVideoPlayerConfig {
24
24
  immediateManifestAds?: boolean;
25
25
  debugAdTiming?: boolean;
26
26
  adFailsafeTimeoutMs?: number;
27
+ adBreakCheckIntervalMs?: number;
28
+ maxAdBreakExtensionMs?: number;
27
29
  showCustomControls?: boolean;
28
30
  onVolumeToggle?: () => void;
29
31
  onFullscreenToggle?: () => void;
@@ -32,6 +34,7 @@ interface StormcloudVideoPlayerConfig {
32
34
  adPlayerType?: 'ima' | 'hls';
33
35
  vastTagUrl?: string;
34
36
  vastMode?: 'adstorm' | 'default';
37
+ minSegmentsBeforePlay?: number;
35
38
  }
36
39
  interface ImaController {
37
40
  initialize: () => void;
@@ -116,6 +119,9 @@ declare class StormcloudVideoPlayer {
116
119
  private isLiveStream;
117
120
  private nativeHlsMode;
118
121
  private videoSrcProtection;
122
+ private bufferedSegmentsCount;
123
+ private shouldAutoplayAfterBuffering;
124
+ private hasInitialBufferCompleted;
119
125
  constructor(config: StormcloudVideoPlayerConfig);
120
126
  private createAdPlayer;
121
127
  load(): Promise<void>;
@@ -161,6 +167,7 @@ declare class StormcloudVideoPlayer {
161
167
  toggleMute(): void;
162
168
  toggleFullscreen(): Promise<void>;
163
169
  isMuted(): boolean;
170
+ setMuted(muted: boolean): void;
164
171
  isFullscreen(): boolean;
165
172
  isLive(): boolean;
166
173
  get videoElement(): HTMLVideoElement;
@@ -209,6 +216,7 @@ interface BaseStormcloudPlayerProps {
209
216
  showCustomControls?: boolean;
210
217
  licenseKey?: string;
211
218
  adFailsafeTimeoutMs?: number;
219
+ minSegmentsBeforePlay?: number;
212
220
  onReady?: (player: StormcloudVideoPlayer) => void;
213
221
  onStart?: () => void;
214
222
  onPlay?: () => void;