update player.d.ts

This commit is contained in:
Harvey Zack committed 2023-05-04 12:55:54 +08:00
1 parent a6a9e93517
commit 782a828758
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -66,13 +66,14 @@ export declare class Player {
set theme(theme: string);
get subtitleOffset(): number;
set subtitleOffset(time: number);
set switch(url: string);
pause(): void;
play(): Promise<void>;
toggle(): void;
attr(key: string, value?: any): unknown;
cssVar<T extends keyof CssVar>(key: T, value?: CssVar[T]): CssVar[T];
switchUrl(url: string): Promise<string>;
switchQuality(url: string): Promise<string>;
switchUrl(url: string): Promise<void>;
switchQuality(url: string): Promise<void>;
getDataURL(): Promise<string>;
getBlobUrl(): Promise<string>;
screenshot(): Promise<string>;