rrweb icon indicating copy to clipboard operation
rrweb copied to clipboard

[Question] Can rrweb capture a WebRTC stream inside a <video> element?

Open jparez opened this issue 7 months ago • 0 comments

Hi,

I have a web app that launches a third-party module displaying a

In PostHog, which uses rrweb under the hood, I can see all elements of my web app except the video stream, which remains black.

I've read related issues and I believe that rrweb does not capture WebRTC streams. Am I correct? If so, is there any workaround or planned support for this use case?

I also found this issue (#450), where it is mentioned that rrweb does not natively capture video streams and that a custom plugin would be needed.

Additionally, I came across this comment:

"rrweb now has a WebRTC plugin that can easily be modified to stream video files as well as canvas via WebRTC."

Does this mean that by modifying this plugin, PostHog could correctly capture the video stream within my web app?

Or could this PR #1239 help in my case? Since it improves media element recording, would it also work for capturing a WebRTC stream inside a

Thanks!

jparez avatar Mar 11 '25 16:03 jparez