feat: added a baseline adapter api to use
This commit is contained in:
@@ -5,7 +5,20 @@
|
|||||||
* creation: 22/4/2026
|
* 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 {
|
export interface PlayerConfig {
|
||||||
|
type?: "native" | "hls" | "dash";
|
||||||
theme?: "dark" | "light";
|
theme?: "dark" | "light";
|
||||||
accent?: string;
|
accent?: string;
|
||||||
controls?: boolean;
|
controls?: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user