-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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]: how i can record iframe content #1524
Comments
today,when i try to record something,i find it success to recording iframe content, i add some config to iframe page !!! oh my god |
what config did u added? |
@Matthew2015 I added a configuration called recordCrossOriginIframes, and then I used postmessage to publish child monitoring messages and start recording them. The next parent monitoring message also started recording. Therefore, the method I adopted is that both parent and child components require a record. |
Does your iframe site also include rrweb? Either the containing document can see into the iframe via the DOM (iframe.contentDocument etc.) or else for e.g. a 3rd party site, they both need to load up rrweb (I haven't ever done this personally) |
I have tried recordCrossOriginIframes : true , its not record iframes content i saw blank white space instead of iframe content , i m still confused how to record cross-origin iframes ? Also its helpful if you let me know how you use postMessage API with this config |
Preflight Checklist
What package is this bug report for?
rrweb
Version
rrweb-2.0.0-alpha.4
Expected Behavior
when my web includes iframe element, i can’t record it
Actual Behavior
my web includes iframe element, waiting for one minutes, i end recording, when i try to replay events, i find it iframe content become white content, no record something,how i can i do
Steps to Reproduce
nothing
Testcase Gist URL
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: