Skip to content

Latest commit

 

History

History
80 lines (41 loc) · 2.56 KB

index.md

File metadata and controls

80 lines (41 loc) · 2.56 KB

Recipes

You may also want to read the guide to understand the APIs, or read the design docs to know more technical details of rrweb.

Scenarios

Record And Replay

Record and Replay is the most common use case, which is suitable for any scenario that needs to collect user behaviors and replay them.

link

Dive Into Events

The events recorded by rrweb are a set of strictly-typed JSON data. You may discover some flexible ways to use them when you are familiar with the details.

link

Load Events Asynchronous

When the size of the recorded events increased, load them in one request is not performant. You can paginate the events and load them as you need.

link

Real-time Replay (Live Mode)

If you want to replay the events in a real-time way, you can use the live mode API. This API is also useful for some real-time collaboration usage.

link

Custom Event

You may need to record some custom events along with the rrweb events, and let them be played as other events. The custom event API was designed for this.

link

Interact With UI During Replay

By default, the UI could not interact during replay. But you can use API to enable/disable this programmatically.

link

Customize The Replayer

When rrweb's Replayer and the rrweb-player UI do not fit your need, you can customize your own replayer UI.

link

Convert To Video

The event data recorded by rrweb is a performant, easy to compress, text-based format. And the replay is also pixel perfect.

But if you really need to convert it into a video format, there are some tools that can do this work.

link

Optimize The Storage Size

In some Apps, rrweb may record an unexpected amount of data. This part will help to find a suitable way to optimize the storage.

link

Canvas

Canvas is a special HTML element, which will not be recorded by rrweb by default. There are some options for recording and replaying Canvas.

link

Console Recorder and Replayer

Starting from v1.0.0, we add the plugin to record and play back console output. This feature aims to provide developers with more information about the bug scene. There are some options for recording and replaying console output.

link

Plugin

The plugin API is designed to extend the function of rrweb without bump the size and complexity of rrweb's core part.

link