feat: update subtitle handling to support multiple active cues and improve rendering logic

This commit is contained in:
Harvey Zack committed 2024-09-22 17:23:43 +08:00
1 parent 3d33458efc
commit 8ea85476e0
5 files changed
+64 -29

No files matched your search

+2 -2
View File
@@ -153,8 +153,8 @@ declare class Artplayer extends Player {
get url(): string;
set url(url: string);
get textTrack(): TextTrack;
get activeCue(): VTTCue;
get cues(): TextTrackCueList;
get activeCues(): VTTCue[];
get cues(): VTTCue[];
style(name: string | Partial<CSSStyleDeclaration>, value?: string): void;
switch(url: string, option?: Subtitle): Promise<string>;
} & Component;