add skipInactive option

Skip inactive time is an important and useful feature. We consider
user interaction events as active, and check next user interaction
event after apply incremental snapshot.
If next user interaction event has a time gap larger than the
threshold, we will set a dynamic speed value which will skip the
inactive time interval in about 5 seconds.
This commit is contained in:
Yanzhen Yu
2018-12-26 18:05:55 +08:00
parent 063f226918
commit aaa8bb9e94
3 changed files with 61 additions and 6 deletions

View File

@@ -95,6 +95,7 @@ export type event =
export type eventWithTime = event & {
timestamp: number;
delay?: number;
};
export type recordOptions = {
@@ -227,6 +228,7 @@ export type playerConfig = {
speed: number;
root: Element;
loadTimeout: number;
skipInactive: Boolean;
};
export type playerMetaData = {