boss-web-player-sdk 2.0.4 → 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/boss-web-player-sdk.css +1 -1
- package/dist/chunks/{src-BHntPCwn.js → src-B_agkf0Z.js} +2 -2
- package/dist/chunks/{src-HJ2drgEB.cjs → src-V150wKi7.cjs} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +23 -2
- package/dist/core.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +11 -2
- package/dist/index.js +63 -63
- package/package.json +1 -1
package/dist/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/src-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/src-V150wKi7.cjs");exports.AnalyticsModule=e.AnalyticsModule,exports.BasePlayerPlugin=class{player;install(e){this.player=e,this.onInstall()}destroy(){this.onDestroy()}onDestroy(){}},exports.CastingModule=e.CastingModule,exports.ChaptersModule=e.ChaptersModule,exports.DRMModule=e.DRMModule,exports.KeyMomentsModule=e.KeyMomentsModule,exports.SubtitlesModule=e.SubtitlesModule,exports.ThumbnailsModule=e.ThumbnailsModule,exports.VideoPlayerSDK=e.VideoPlayerSDK;
|
package/dist/core.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 CastingConfig {
|
|
@@ -133,6 +140,9 @@ export declare class CastingModule implements ICastingModule {
|
|
|
133
140
|
private castDeviceName;
|
|
134
141
|
private onCastStateChangeCallback?;
|
|
135
142
|
private onRemoteStateChangeCallback?;
|
|
143
|
+
private onNextEpisodeRequestCallback?;
|
|
144
|
+
private boundMessageSession;
|
|
145
|
+
private sessionMessageHandler?;
|
|
136
146
|
private castContext;
|
|
137
147
|
private remotePlayer;
|
|
138
148
|
private remotePlayerController;
|
|
@@ -186,6 +196,9 @@ export declare class CastingModule implements ICastingModule {
|
|
|
186
196
|
requestSession(currentSrc: string, currentTime: number, title?: string, customData?: CastCustomData): Promise<void>;
|
|
187
197
|
stopCasting(): void;
|
|
188
198
|
destroy(): void;
|
|
199
|
+
onNextEpisodeRequest(callback: () => void): void;
|
|
200
|
+
private bindSessionMessages;
|
|
201
|
+
private unbindSessionMessages;
|
|
189
202
|
remotePlayPause(): void;
|
|
190
203
|
remoteSeek(time: number): void;
|
|
191
204
|
private requestSeek;
|
|
@@ -299,6 +312,7 @@ declare interface ICastingModule {
|
|
|
299
312
|
remoteSetSubtitle(track: CastTrackRef | null): void;
|
|
300
313
|
remoteSetAudioTrack(track: CastTrackRef): void;
|
|
301
314
|
remoteSkipAd(toTime: number): void;
|
|
315
|
+
onNextEpisodeRequest?(callback: () => void): void;
|
|
302
316
|
onCastStateChange(callback: (isCasting: boolean, deviceName: string) => void): void;
|
|
303
317
|
onRemoteStateChange(callback: (state: RemoteCastState) => void): void;
|
|
304
318
|
requestAirPlaySession(videoElement: HTMLVideoElement): void;
|
|
@@ -435,6 +449,12 @@ declare interface RemoteCastState {
|
|
|
435
449
|
isMuted: boolean;
|
|
436
450
|
}
|
|
437
451
|
|
|
452
|
+
declare interface SkipMarker {
|
|
453
|
+
title?: string;
|
|
454
|
+
start: number | string;
|
|
455
|
+
end: number | string;
|
|
456
|
+
}
|
|
457
|
+
|
|
438
458
|
export declare class SubtitlesModule implements ISubtitlesModule {
|
|
439
459
|
private tracks;
|
|
440
460
|
private activeTrackId;
|
|
@@ -553,7 +573,6 @@ export declare class VideoPlayerSDK {
|
|
|
553
573
|
private pendingSeekAttribution;
|
|
554
574
|
private eventListeners;
|
|
555
575
|
private static readonly AIRPLAY_POLL_INTERVAL_MS;
|
|
556
|
-
private static readonly PRE_ROLL_HEAD_TOLERANCE_S;
|
|
557
576
|
private airPlayPollTimer;
|
|
558
577
|
private airPlayTargetChangeHandler?;
|
|
559
578
|
private airPlaySeekPin;
|
|
@@ -573,7 +592,9 @@ export declare class VideoPlayerSDK {
|
|
|
573
592
|
private rewriteToProxy;
|
|
574
593
|
private loadSource;
|
|
575
594
|
private setupBackgroundControls;
|
|
576
|
-
play(
|
|
595
|
+
play(opts?: {
|
|
596
|
+
allowMutedAutoplayFallback?: boolean;
|
|
597
|
+
}): void;
|
|
577
598
|
pause(): void;
|
|
578
599
|
seek(seconds: number): void;
|
|
579
600
|
attributeNextSeek(eventType: 'fast_forward' | 'fast_backward' | 'key_moments', extras?: Partial<AnalyticsEvent>): void;
|
package/dist/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s,c as a,i as r,n as t,o
|
|
1
|
+
import{a as s,c as a,i as r,l as o,n as t,o as l,r as n,s as e}from"./chunks/src-B_agkf0Z.js";var i=class{player;install(s){this.player=s,this.onInstall()}destroy(){this.onDestroy()}onDestroy(){}};export{o as AnalyticsModule,i as BasePlayerPlugin,r as CastingModule,e as ChaptersModule,s as DRMModule,a as KeyMomentsModule,l as SubtitlesModule,n as ThumbnailsModule,t as VideoPlayerSDK};
|