boss-web-player-sdk 2.0.3 → 2.0.5

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/dist/index.d.ts CHANGED
@@ -122,6 +122,13 @@ declare interface CastCustomData {
122
122
  adTrackingUrl?: string;
123
123
  themeColor?: string;
124
124
  adAccentColor?: string;
125
+ skipMarkers?: SkipMarker[];
126
+ introStartTime?: number;
127
+ introEndTime?: number;
128
+ outroStartTime?: number;
129
+ nextEpisodeAutoAdvanceSeconds?: number;
130
+ nextEpisodeThumbnailUrl?: string;
131
+ watchedAdBreaks?: number[];
125
132
  }
126
133
 
127
134
  declare interface CastTrackRef {
@@ -222,6 +229,7 @@ declare interface ICastingModule {
222
229
  remoteSetSubtitle(track: CastTrackRef | null): void;
223
230
  remoteSetAudioTrack(track: CastTrackRef): void;
224
231
  remoteSkipAd(toTime: number): void;
232
+ onNextEpisodeRequest?(callback: () => void): void;
225
233
  onCastStateChange(callback: (isCasting: boolean, deviceName: string) => void): void;
226
234
  onRemoteStateChange(callback: (state: RemoteCastState) => void): void;
227
235
  requestAirPlaySession(videoElement: HTMLVideoElement): void;
@@ -563,7 +571,6 @@ export declare class VideoPlayerSDK {
563
571
  private pendingSeekAttribution;
564
572
  private eventListeners;
565
573
  private static readonly AIRPLAY_POLL_INTERVAL_MS;
566
- private static readonly PRE_ROLL_HEAD_TOLERANCE_S;
567
574
  private airPlayPollTimer;
568
575
  private airPlayTargetChangeHandler?;
569
576
  private airPlaySeekPin;
@@ -583,7 +590,9 @@ export declare class VideoPlayerSDK {
583
590
  private rewriteToProxy;
584
591
  private loadSource;
585
592
  private setupBackgroundControls;
586
- play(): void;
593
+ play(opts?: {
594
+ allowMutedAutoplayFallback?: boolean;
595
+ }): void;
587
596
  pause(): void;
588
597
  seek(seconds: number): void;
589
598
  attributeNextSeek(eventType: 'fast_forward' | 'fast_backward' | 'key_moments', extras?: Partial<AnalyticsEvent>): void;