feat: add an option to determine whether to pause CSS animation when playback is paused (#428)

set pauseAnimation to true by default
This commit is contained in:
Lucky Feng
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 14ed8ad1e6
commit d7da4c289c
4 changed files with 20 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ export declare class Replayer {
private fragmentParentMap;
private imageMap;
constructor(events: Array<eventWithTime | string>, config?: Partial<playerConfig>);
on(event: string, handler: Handler): void;
on(event: string, handler: Handler): this;
setConfig(config: Partial<playerConfig>): void;
getMetaData(): playerMetaData;
getCurrentTime(): number;