mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
refactor(core): CORE-16 type display modes and own fullscreen lifetimes
This commit is contained in:
1 parent
1b83081e8f
commit
88aef830df
81 files changed
+33897
-1503
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import type { PipHost } from '../../packages/artplayer/src/display/types'
|
||||
import pipMix from '../../packages/artplayer/src/player/pipMix'
|
||||
|
||||
declare const host: PipHost
|
||||
pipMix(host)
|
||||
const state: HTMLElement | null | boolean = host.pip
|
||||
// @ts-expect-error Native PiP historically returns the element or null, not just boolean.
|
||||
const booleanOnly: boolean = host.pip
|
||||
host.pip = true
|
||||
host.pip = false
|
||||
// @ts-expect-error PiP setters accept a boolean input.
|
||||
host.pip = 'picture-in-picture'
|
||||
export { booleanOnly, state }
|
||||
Reference in new issue
Block a user