All checks were successful
Validate Kaleido Desktop / validate (push) Successful in 1m22s
On Windows the miniplayer is now a window of its own (mini.rs, mini.html): a borderless window owned by the main one that the video moves into (VideoSurface::set_host swaps composition targets in one commit). Dragging moves the whole window, so video and controls move together with no edge flicker; release glides it to the nearest corner or the one it's flicked towards, remembered, and it follows the main window. Its page mirrors the player over events (mini:state / mini:action). Shown and hidden natively without activation, so the main window keeps focus. macOS keeps the in-page miniplayer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
537 B
TypeScript
17 lines
537 B
TypeScript
/** What the miniplayer window shows, sent from the main window (src/player/miniWindow.ts). */
|
|
export interface MiniState {
|
|
title: string;
|
|
subtitle: string;
|
|
paused: boolean;
|
|
ended: boolean;
|
|
position: number;
|
|
duration: number;
|
|
loading: boolean;
|
|
buffering: boolean;
|
|
error: boolean;
|
|
}
|
|
|
|
/** Buttons and gestures in the miniplayer window, carried out by the main window's player. */
|
|
export type MiniAction = 'ready' | 'toggle' | 'back' | 'forward' | 'expand' | 'close';
|
|
|
|
export const MINI_CORNER_KEY = 'kaleido.miniCorner';
|