boss-web-player-sdk 1.1.12 → 1.1.13
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/README.md +18 -18
- package/dist/boss-web-player-sdk.css +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +14 -0
- package/dist/core.js +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -0
- package/dist/index.js +832 -768
- package/dist/index.js.map +1 -1
- package/dist/{src-DF41hY2C.js → src-CcXy_WIu.js} +17 -11
- package/dist/{src-DF41hY2C.js.map → src-CcXy_WIu.js.map} +1 -1
- package/dist/{src-CZenCGCL.cjs → src-ynqyJ4on.cjs} +5 -5
- package/dist/{src-CZenCGCL.cjs.map → src-ynqyJ4on.cjs.map} +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -186,6 +186,11 @@ declare class CastingModule {
|
|
|
186
186
|
deviceName: string;
|
|
187
187
|
};
|
|
188
188
|
getRemoteState(): RemoteCastState | null;
|
|
189
|
+
/**
|
|
190
|
+
* Derives the Cast MediaInfo content type from the stream URL so HLS/DASH manifests
|
|
191
|
+
* aren't sent to the receiver mislabeled as video/mp4, which causes load failures.
|
|
192
|
+
*/
|
|
193
|
+
private getContentType;
|
|
189
194
|
/**
|
|
190
195
|
* Prompts the native Google Cast device picker overlay, then loads media on the remote device.
|
|
191
196
|
* The caller is responsible for pausing local playback before/after this resolves.
|
|
@@ -728,6 +733,15 @@ export declare class VideoPlayerSDK {
|
|
|
728
733
|
private parseAdBreaksFromFragments;
|
|
729
734
|
private parseAdBreaksFromPlaylist;
|
|
730
735
|
private isTimeInAdBreak;
|
|
736
|
+
/**
|
|
737
|
+
* Syncs isAdBreak/playbackRate/ad-mode UI state against `time` and emits
|
|
738
|
+
* adbreakchange on transitions. Called from timeupdate, but also called
|
|
739
|
+
* eagerly as soon as ad breaks or metadata become known — timeupdate alone
|
|
740
|
+
* doesn't fire until playback actually starts, which left a preroll ad's
|
|
741
|
+
* first frame briefly showing content controls (rewind/forward, etc.)
|
|
742
|
+
* while autoplay was blocked or the source was still buffering.
|
|
743
|
+
*/
|
|
744
|
+
private refreshAdBreakState;
|
|
731
745
|
/**
|
|
732
746
|
* Converts raw (stitched) video time to content-only time by subtracting the
|
|
733
747
|
* ad time elapsed before `time`. During an ad break the result is frozen at
|