Bug in recording events
See original GitHub issueI am using rrweb.record from this CDN
<script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.js"></script>
This is how I record my events
let events = [];
rrweb.record({
emit(event) {
events.push(event);
}
});
I call this function every 10 sec
function save() {
console.log(events)
events = [];
}
setInterval(save, 10 * 1000);
The first record is recorded correctly and displays the dom elements
other wise all the other events are corrupted
and data is like this data: {source: 2, type: 0, id: 40, x: 286, y: 126}
when I try to play it, it only displays a courser position
this is the whole code page
<html>
<head>
<!-- <script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/record/rrweb-record.min.js"></script> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.css" />
<script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/rrweb-player@latest/dist/index.js"></script> -->
<!--
<script src="https://cdn.jsdelivr.net/npm/rrweb@latest/dist/record/rrweb-record.min.js"></script> -->
</head>
<script>
let eventsArray = [];
let events = [];
rrweb.record({
emit(event) {
events.push(event);
},
});
function save() {
eventsArray.push(events)
if (eventsArray.length == 1) {
// const replayer = new rrweb.Replayer(events);
// replayer.play();
}
console.log(events)
events = [];
}
setInterval(save, 10 * 1000);
</script>
<body>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body>
</html>
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Types of Bugs & Listening Devices - Esoteric Ltd
There are many types of listening devices available including hard wired, radio frequency, acoustic audio and optical bugs.
Read more >Bugs - Crypto Museum
Some bugs are in fact recording devices that are collected after the conversation has taken place. Some modern bugs have a built-in video...
Read more >A bug in a popular iPhone app exposed thousands of call ...
A security vulnerability in a popular iPhone call recording app exposed thousands of users' recorded conversations.
Read more >Record steps to reproduce a problem - Microsoft Support
Go through the steps to reproduce the problem you're trying to diagnose. You can pause and resume the recording at any time. (Optional)...
Read more >Common Capture Issues - Overwolf Support
Sound Drivers; Sound not recorded at all; Only recording input ... this may affect the resulting video, or event prevent Overwolf's app from ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hayait599 Okay, I think I catch your point.
It looks like you are trying to do the following things?
The third step will not work because rrweb store event as full snapshot and incremental events, it works like a chain. So you need to concat all the events into one array before replay.
BTW, if you are wishing to have some feature like only keep the last 10 seconds events, you can try this config.
@hayait599 @Yuyz0112 Do you have an end to end working example of this?
I need the table structure you are using? I also need how you are merging different events to play a big video.
I want to merge every 10-second event and play up to 5 minutes of video. Is it possible? Also, do you how we will differentiate if it’s a new session or old while merging the events?