mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 03:46:16 -08:00
16 lines
689 B
TypeScript
16 lines
689 B
TypeScript
import type { WebFullscreenHost } from '../../packages/artplayer/src/display/types'
|
|
import { capturePlacement, restorePlacement } from '../../packages/artplayer/src/display/placement'
|
|
import fullscreenWebMix from '../../packages/artplayer/src/player/fullscreenWebMix'
|
|
|
|
declare const host: WebFullscreenHost
|
|
fullscreenWebMix(host)
|
|
host.fullscreenWeb = true
|
|
const active: boolean = host.fullscreenWeb
|
|
const placement = capturePlacement(host.template.$player)
|
|
restorePlacement(placement)
|
|
// @ts-expect-error Display setters retain a boolean input.
|
|
host.fullscreenWeb = 'true'
|
|
// @ts-expect-error DOM placement cannot be constructed from a string.
|
|
capturePlacement('player')
|
|
export { active }
|