0.0.2 • Published 7 months ago
rrweb-events-merge v0.0.2
rrweb-events-merge
You can choose time range in replay and auto generate a clip of the events which can be played independently.
Extremely small lib size:
- size: 1.59 KB
- gzip: 0.73 KB
Usage
- install dependencies
npm install rrweb-events-merge
- import and generate merged events
import { mergeEvents } from "rrweb-events-merge";
const mergedEvents = mergeEvents({
events: events,
startTimeStamp: startTimeStamp,
endTimeStamp: endTimeStamp,
iframe: iframe,
snapshotOptions: {
mirror,
},
onError: (error: string) => {
console.error(error);
},
});
you can also see the example in the MergeEvents.vue
examples
- install all dependencies
pnpm install
- build sdk
cd packages/sdk && pnpm run build
- start the platform dev server
cd packages/platform && pnpm run dev
In step1: you need to record the page and generate the row events
- click the button: startRecord
- click and select the form
- click the button: stopRecord
In step2: you need to choose the time range and generate the merged events
- select the start timestamp which is the start event you want to start with
- click the button: Merge Events and generate the merged events
In step3: you can watch the video created by the merged events