update auto play option in the guide

This commit is contained in:
Yanzhen Yu
2019-01-25 18:29:57 +08:00
parent 3ce4c76e60
commit d60246964e

View File

@@ -245,6 +245,7 @@ new rrwebPlayer({
target: document.body, // customizable root element target: document.body, // customizable root element
data: { data: {
events, events,
autoPlay: true,
}, },
}); });
``` ```
@@ -266,7 +267,7 @@ So rrweb expose a public API `on` which allow developers listen to the events an
| skip-start | started to skip inactive time | | skip-start | started to skip inactive time |
| skip-end | skipped inactive time | | skip-end | skipped inactive time |
The rrweb-replayer also re-expose the event listener via a `component.addEventListener` API. The rrweb-replayer also re-expose the event listener via a `component.addEventListener` API.
## API ## API