init commit

This commit is contained in:
Carlos
2026-02-21 10:33:18 +01:00
parent c863a943ed
commit 9d955bf338
9512 changed files with 2015317 additions and 1305 deletions

View File

@@ -0,0 +1,26 @@
import type { ReactElement, SyntheticEvent } from 'react';
import type { PlayerEmitter, ThumbnailEmitter } from './event-emitter.js';
export type ThumbnailMethods = {
getContainerNode: () => HTMLDivElement | null;
getScale: () => number;
};
export type PlayerMethods = ThumbnailMethods & {
play: (e?: SyntheticEvent) => void;
pause: () => void;
toggle: (e?: SyntheticEvent) => void;
seekTo: (frame: number) => void;
getCurrentFrame: () => number;
requestFullscreen: () => void;
exitFullscreen: () => void;
isFullscreen: () => boolean;
setVolume: (num: number) => void;
getVolume: () => number;
isMuted: () => boolean;
isPlaying: () => boolean;
mute: () => void;
unmute: () => void;
pauseAndReturnToPlayStart: () => void;
};
export type ThumbnailRef = ThumbnailEmitter & ThumbnailMethods;
export type PlayerRef = PlayerEmitter & PlayerMethods;
export type RenderCustomControls = () => ReactElement | null;