[Question] Can rrweb capture a WebRTC stream inside a <video> element?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 20.2k
- Forks
- 1.7k
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 17
Description
Hi,
I have a web app that launches a third-party module displaying a element. The source of this video is a WebRTC stream.
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 tag, or would a custom plugin still be needed?
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading issue #450 and PR #1239, then inspect the referenced WebRTC plugin and media-element recording behavior. Determine whether either path captures a WebRTC stream in a video element, and document the supported behavior, workaround, or need for a custom plugin.
Written by the indexing model from the issue text.
Assessment
- Domain
- audio-video-rtc
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100