suada-components 1.7.0 → 1.9.0
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/components/{DailyMotion-C2fzQqF6.js → DailyMotion-B7yDPBbg.js} +1 -1
- package/dist/components/{DailyMotion-D6-bQSDC.esm.js → DailyMotion-BmnymjR1.esm.js} +1 -1
- package/dist/components/{Facebook-ngwgOcwS.js → Facebook-42iqQU2G.js} +1 -1
- package/dist/components/{Facebook-CHgu-1qk.esm.js → Facebook-D9Ak6ZJU.esm.js} +1 -1
- package/dist/components/{FilePlayer-gXcilMCz.js → FilePlayer-CAnHK0Cd.js} +1 -1
- package/dist/components/{FilePlayer-CnFGUWCJ.esm.js → FilePlayer-wg9lyafD.esm.js} +1 -1
- package/dist/components/{Kaltura-Dwtf5bDJ.js → Kaltura-Ct6kwbgP.js} +1 -1
- package/dist/components/{Kaltura-BKTRnPwX.esm.js → Kaltura-DPaEN-dq.esm.js} +1 -1
- package/dist/components/{Mixcloud-HlioccZN.esm.js → Mixcloud-BobSN3YI.esm.js} +1 -1
- package/dist/components/{Mixcloud-CtZR5d1S.js → Mixcloud-sBbcL5rG.js} +1 -1
- package/dist/components/{Mux-CiE-LfDW.esm.js → Mux-B9YP-rFr.esm.js} +1 -1
- package/dist/components/{Mux-DhMGRnH7.js → Mux-Cosy8sFO.js} +1 -1
- package/dist/components/{Preview-DuscX4du.js → Preview-DiVfo6aa.js} +1 -1
- package/dist/components/{Preview-BDrq-vcV.esm.js → Preview-XcTlhHT1.esm.js} +1 -1
- package/dist/components/{SoundCloud-BG1mh5fx.esm.js → SoundCloud-BTHoyFWT.esm.js} +1 -1
- package/dist/components/{SoundCloud-pcTMWQVG.js → SoundCloud-CIWqB-QW.js} +1 -1
- package/dist/components/{Streamable-B-2t9AZh.js → Streamable-9anYiQtU.js} +1 -1
- package/dist/components/{Streamable-3QXSsimo.esm.js → Streamable-DsfQCy3p.esm.js} +1 -1
- package/dist/components/{Twitch-B2wmDlW8.esm.js → Twitch-D1BOr8hj.esm.js} +1 -1
- package/dist/components/{Twitch-Ccg79Yis.js → Twitch-Dud6e1Rv.js} +1 -1
- package/dist/components/VideoPlayer/Controls/Controls.js +3 -3
- package/dist/components/VideoPlayer/Controls/Controls.js.map +1 -1
- package/dist/components/VideoPlayer/Controls/Controls.styles.d.ts +24 -8
- package/dist/components/VideoPlayer/Controls/Controls.styles.js +20 -16
- package/dist/components/VideoPlayer/Controls/Controls.styles.js.map +1 -1
- package/dist/components/VideoPlayer/pipManager.d.ts +60 -0
- package/dist/components/VideoPlayer/pipManager.js +272 -0
- package/dist/components/VideoPlayer/pipManager.js.map +1 -0
- package/dist/components/VideoPlayer/usePlayerControls.js +85 -11
- package/dist/components/VideoPlayer/usePlayerControls.js.map +1 -1
- package/dist/components/{Vidyard-BcZfnHmw.js → Vidyard-BuOu85uS.js} +1 -1
- package/dist/components/{Vidyard-stasLAXI.esm.js → Vidyard-C1csjpQH.esm.js} +1 -1
- package/dist/components/{Vimeo-U2HYvdiG.esm.js → Vimeo-CHlHIswX.esm.js} +1 -1
- package/dist/components/{Vimeo-9D0LyMV4.js → Vimeo-DrDJ5O9H.js} +1 -1
- package/dist/components/{Wistia-BNvoofR9.esm.js → Wistia-D-eYyONb.esm.js} +1 -1
- package/dist/components/{Wistia-3LaD3aiP.js → Wistia-fh9U2CA2.js} +1 -1
- package/dist/components/{YouTube-DJZyY4jW.esm.js → YouTube-CmnnzZvk.esm.js} +1 -1
- package/dist/components/{YouTube-CdcE3nmm.js → YouTube-DC2uZ14c.js} +1 -1
- package/dist/components/components/VideoPlayer/Controls/Controls.styles.d.ts +24 -8
- package/dist/components/components/VideoPlayer/pipManager.d.ts +60 -0
- package/dist/components/{index-C5MULDlh.esm.js → index-DKAGRUEW.esm.js} +379 -46
- package/dist/components/{index-Debc-Hq8.js → index-DetZ05pw.js} +379 -46
- package/dist/components/index.esm.js +1 -1
- package/dist/icons/components/VideoPlayer/Controls/Controls.styles.d.ts +24 -8
- package/dist/icons/components/VideoPlayer/pipManager.d.ts +60 -0
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Global Picture-in-Picture Manager
|
|
3
|
+
* This module manages PiP state across component unmounts and route changes
|
|
4
|
+
*/
|
|
5
|
+
interface PiPVideoState {
|
|
6
|
+
url: string;
|
|
7
|
+
currentTime: number;
|
|
8
|
+
isPlaying: boolean;
|
|
9
|
+
volume: number;
|
|
10
|
+
playbackRate: number;
|
|
11
|
+
}
|
|
12
|
+
declare class PictureInPictureManager {
|
|
13
|
+
private videoElement;
|
|
14
|
+
private pipContainer;
|
|
15
|
+
private currentVideoState;
|
|
16
|
+
private onStateChange;
|
|
17
|
+
constructor();
|
|
18
|
+
/**
|
|
19
|
+
* Register a video element for PiP management
|
|
20
|
+
*/
|
|
21
|
+
registerVideo(videoElement: HTMLVideoElement, url: string, onStateChange?: (state: PiPVideoState) => void): void;
|
|
22
|
+
/**
|
|
23
|
+
* Unregister the current video element
|
|
24
|
+
*/
|
|
25
|
+
unregisterVideo(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Create a persistent video element for PiP
|
|
28
|
+
*/
|
|
29
|
+
private createPersistentVideo;
|
|
30
|
+
/**
|
|
31
|
+
* Enter picture-in-picture mode with persistence
|
|
32
|
+
*/
|
|
33
|
+
enterPiP(): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Exit picture-in-picture mode
|
|
36
|
+
*/
|
|
37
|
+
exitPiP(): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Check if currently in PiP mode
|
|
40
|
+
*/
|
|
41
|
+
isPiPActive(): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Get current video state
|
|
44
|
+
*/
|
|
45
|
+
getCurrentState(): PiPVideoState | null;
|
|
46
|
+
/**
|
|
47
|
+
* Restore video state to a new video element
|
|
48
|
+
*/
|
|
49
|
+
restoreStateToVideo(videoElement: HTMLVideoElement): void;
|
|
50
|
+
private handleTimeUpdate;
|
|
51
|
+
private handlePlayStateChange;
|
|
52
|
+
private handleVolumeChange;
|
|
53
|
+
private handleRateChange;
|
|
54
|
+
private handlePiPEnter;
|
|
55
|
+
private handlePiPExit;
|
|
56
|
+
private notifyStateChange;
|
|
57
|
+
private cleanup;
|
|
58
|
+
}
|
|
59
|
+
export declare const pipManager: PictureInPictureManager;
|
|
60
|
+
export {};
|