stormcloud-video-player 0.1.7 → 0.1.9

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.ts CHANGED
@@ -17,7 +17,6 @@ interface StormcloudVideoPlayerConfig {
17
17
  autoplay?: boolean;
18
18
  muted?: boolean;
19
19
  allowNativeHls?: boolean;
20
- adSchedule?: AdSchedule;
21
20
  lowLatencyMode?: boolean;
22
21
  driftToleranceMs?: number;
23
22
  immediateManifestAds?: boolean;
@@ -76,7 +75,6 @@ declare class StormcloudVideoPlayer {
76
75
  private hls?;
77
76
  private ima;
78
77
  private attached;
79
- private adSchedule;
80
78
  private inAdBreak;
81
79
  private currentAdBreakStartWallClockMs;
82
80
  private expectedAdBreakDurationMs;
@@ -109,15 +107,13 @@ declare class StormcloudVideoPlayer {
109
107
  private initializeTracking;
110
108
  private sendHeartbeatIfNeeded;
111
109
  private fetchAdConfiguration;
112
- setAdSchedule(schedule: AdSchedule | undefined): void;
113
110
  getCurrentAdIndex(): number;
114
111
  getTotalAdsInBreak(): number;
115
112
  isAdPlaying(): boolean;
116
113
  isShowingAds(): boolean;
117
114
  getStreamType(): "hls" | "other";
118
115
  shouldShowNativeControls(): boolean;
119
- loadAdScheduleFromUrl(url: string): Promise<void>;
120
- loadDefaultVastFromAiry(airyApiUrl: string, params?: Record<string, string>): Promise<void>;
116
+ loadDefaultVastFromAdstorm(adstormApiUrl: string, params?: Record<string, string>): Promise<void>;
121
117
  private handleAdStart;
122
118
  private findCurrentOrNextBreak;
123
119
  private onTimeUpdate;
@@ -135,6 +131,12 @@ declare class StormcloudVideoPlayer {
135
131
  private selectVastTagsForBreak;
136
132
  private getRemainingAdMs;
137
133
  private findBreakForTime;
134
+ toggleMute(): void;
135
+ toggleFullscreen(): Promise<void>;
136
+ isMuted(): boolean;
137
+ isFullscreen(): boolean;
138
+ get videoElement(): HTMLVideoElement;
139
+ resize(): void;
138
140
  destroy(): void;
139
141
  }
140
142