Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 回放视频中出现重复元素 #1241

Open
NorthwesternDirector opened this issue Jun 13, 2023 · 7 comments
Open

[Bug]: 回放视频中出现重复元素 #1241

NorthwesternDirector opened this issue Jun 13, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@NorthwesternDirector
Copy link

NorthwesternDirector commented Jun 13, 2023

What package is this bug report for?

rrweb、rrweb-player

Version

v2.0.0-alpha.4

Expected Behavior

页面中正常播放回放视频

Actual Behavior

回放视频中出现重复元素

Steps to Reproduce

在播放回放时发现播放器内会出现重复的元素,所以将此条记录的 events 打印出来看了下,发现里边会存在重复(add)的条目,这可能是什么情况导致的呢

Testcase Gist URL

No response

Additional Information

No response

@NorthwesternDirector NorthwesternDirector added the bug Something isn't working label Jun 13, 2023
@NorthwesternDirector
Copy link
Author

NorthwesternDirector commented Jun 13, 2023

将重复的几条events删除后仅保留下一条,视频就无重复元素了,是记录器使用的问题吗

@YunFeng0817
Copy link
Member

#1095 Can you check out this pull request to see if it fixes this issue

@houyj404
Copy link

houyj404 commented Sep 21, 2023

@YunFeng0817 hello, I tried to upgrade the version from 1.1.4 to 2.0.0-alpha.5. The scenario is to recreate a snapshot when an iframe is dynamically generated, but the iframe still has duplicate elements, which look like a click event.

@houyj404
Copy link

I know, when stopFn() is called, a new iframe is born, so the listening event is not completely deregistered.

@voidman2017
Copy link

What package is this bug report for?

rrweb、rrweb-player

Version

v2.0.0-alpha.4

Expected Behavior

页面中正常播放回放视频

Actual Behavior

回放视频中出现重复元素

Steps to Reproduce

在播放回放时发现播放器内会出现重复的元素,所以将此条记录的 events 打印出来看了下,发现里边会存在重复(add)的条目,这可能是什么情况导致的呢

Testcase Gist URL

No response

Additional Information

No response

请问是所有元素重复还是部分元素重复,我这边项目出现了部分动态添加的元素重复的现象,不确定是不是对应相同情况

@wcldyx
Copy link

wcldyx commented May 26, 2024

问题解决了吗

@somnustd
Copy link

问题解决了吗

stopRecord.value = rrweb.record({...})

onBeforeUnmount(() => {
stopRecord.value();
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants