mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-12 23:33:43 +08:00
16 lines
400 B
TypeScript
16 lines
400 B
TypeScript
export interface PlayerCursorVisibilityState {
|
|
isFullscreen: boolean;
|
|
isPlaying: boolean;
|
|
showControls: boolean;
|
|
hasInteractiveOverlay?: boolean;
|
|
}
|
|
|
|
export function shouldHidePlayerCursor({
|
|
isFullscreen,
|
|
isPlaying,
|
|
showControls,
|
|
hasInteractiveOverlay = false,
|
|
}: PlayerCursorVisibilityState): boolean {
|
|
return isFullscreen && isPlaying && !showControls && !hasInteractiveOverlay;
|
|
}
|