You can choose any time range in replay and generate a new clip of the rrweb events which can be played independently EVEN IF there are no fullsnapshots in this time range.
Extremely small lib size:
- size: 1.59 KB
- gzip: 0.73 KB
- 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
- 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