feat: added a baseline adapter api to use

This commit is contained in:
2026-04-23 00:41:50 +03:30
parent e730b77fce
commit 26d65b3282

View File

@@ -5,7 +5,20 @@
* creation: 22/4/2026
*/
export interface AdapterAPI {
load?: () => void;
play?: () => void;
pause?: () => void;
destroy?: () => void;
seek?: (time: number) => void;
currentTime?: () => number;
duration?: () => number;
volume?: () => number;
mute?: () => boolean;
}
export interface PlayerConfig {
type?: "native" | "hls" | "dash";
theme?: "dark" | "light";
accent?: string;
controls?: boolean;