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
2020-11-27 16:16:18 +08:00
committed by GitHub
parent 8f3086c18c
commit 658999c6e0
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;