feat: Add PIP (Picture-in-Picture) support (#2391)

- Closes: #1657
This commit is contained in:
Dermot Duffy
2026-03-05 20:19:20 -08:00
committed by GitHub
parent ecc8ecfd7e
commit c398562d40
32 changed files with 735 additions and 14 deletions
+2
View File
@@ -90,6 +90,7 @@ export type WebkitHTMLVideoElement = HTMLVideoElement & {
};
export type FullscreenElement = HTMLElement;
export type PIPElement = HTMLVideoElement;
export interface MediaPlayerController {
play(): Promise<void>;
@@ -103,6 +104,7 @@ export interface MediaPlayerController {
setControls(controls?: boolean): Promise<void>;
isPaused(): boolean;
getFullscreenElement(): FullscreenElement | null;
getPIPElement(): PIPElement | null;
}
export interface MediaPlayer {