-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose constant SKIP_TIME_THRESHOLD as skipTimeThreshold in replayer #1408
Expose constant SKIP_TIME_THRESHOLD as skipTimeThreshold in replayer #1408
Conversation
|
guide.md
Outdated
@@ -301,6 +301,7 @@ The replayer accepts options as its constructor's second parameter, and it has t | |||
| root | document.body | the root element of replayer | | |||
| loadTimeout | 0 | timeout of loading remote style sheet | | |||
| skipInactive | false | whether to skip inactive time | | |||
| skipTimeThreshold | 10000 | a threshold of inactive time in milliseconds | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| skipTimeThreshold | 10000 | a threshold of inactive time in milliseconds | | |
| skipTimeThreshold | 10000 | the threshold in milliseconds for what should be considered an inactive period | |
Thanks for your contribution! I don't use the svelte player but this looks good. May I suggest a better name for the config setting? Maybe |
I did the change to |
…layer (rrweb-io#1408) Expose constant SKIP_TIME_THRESHOLD as `inactivePeriodThreshold` config setting in replayer
…layer (rrweb-io#1408) Expose constant SKIP_TIME_THRESHOLD as `inactivePeriodThreshold` config setting in replayer
…layer (rrweb-io#1408) Expose constant SKIP_TIME_THRESHOLD as `inactivePeriodThreshold` config setting in replayer
…layer (rrweb-io#1408) Expose constant SKIP_TIME_THRESHOLD as `inactivePeriodThreshold` config setting in replayer
There is this hardcoded constant
SKIP_TIME_THRESHOLD
to define the amount of time in milliseconds of an inactive period. By default it is set to 10 seconds, but I believe this should be exposed as a configuration option of the replayer so that users may configure it to fit their needs.This pull request exposes
SKIP_TIME_THRESHOLD
asskipTimeThreshold
.