-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
add allowIframe option #592
Conversation
Thanks @Juice10, I edited the description. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please show an example of how to recording YouTube videos with the option "allowIframe"?
@Mark-Fenng I think @bachmanity1 means just allow loading YouTube iframe normally during replay, which is out of the control of rrweb's replayer. |
yes @Yuyz0112 is right, this option allows to load youtube iframe normally during replay and then using |
Ok, but from your changes, I can't see how this option allows loading youtube iframe. |
@Mark-Fenng here is example how we can record events from youtube iframe, using same logic you can process these events in replayed page
|
Let me take a look at this PR a little more. Thanks for the code and review @bachmanity1 @Mark-Fenng |
@bachmanity1 Both this PR and the PR in rrweb-snapshot look good to me. The only remaining topic is whether we can call this option |
I prefer keepIframeSrc. |
@Yuyz0112 I renamed |
@bachmanity1 Could you upgrade to rrweb-snapshot@1.1.5 in your branch? |
@Yuyz0112 upgraded. |
Thanks! |
Is there a record/replay youtube pattern here that can be integrated into core rrweb such that people get youtube replay out of the box? |
This PR fixes #585
Additional option allows iframes to retain
src
attribute. This option allong withcustom-events
can be used to replay content of iframes that is blocked bysame-origin-policy
such as youtube iframes.By using below function I was able to replay content from youtube: