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
+5 -1
View File
@@ -1,5 +1,5 @@
import { LitElement } from 'lit';
import { FullscreenElement, MediaPlayerController } from '../../types';
import { FullscreenElement, MediaPlayerController, PIPElement } from '../../types';
import { hideMediaControlsTemporarily, setControlsOnVideo } from '../../utils/controls';
import { screenshotVideo } from '../../utils/screenshot';
@@ -107,4 +107,8 @@ export class VideoMediaPlayerController implements MediaPlayerController {
public getFullscreenElement(): FullscreenElement | null {
return this._getVideoCallback() ?? null;
}
public getPIPElement(): PIPElement | null {
return this._getVideoCallback() ?? null;
}
}