close #342 send SET_SPEED event when setConfig

This commit is contained in:
Yanzhen Yu
2020-09-12 15:12:23 +08:00
parent 52e257627d
commit 91dc54c7b8

View File

@@ -207,6 +207,14 @@ export class Replayer {
if (!this.config.skipInactive) {
this.backToNormal();
}
if (typeof this.config.speed !== 'undefined') {
this.speedService.send({
type: 'SET_SPEED',
payload: {
speed: config.speed!,
},
});
}
}
public getMetaData(): playerMetaData {