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

youtube video with react player is giving black screen while capturing with domtoimage #144

Open
Thesiva7 opened this issue Jun 14, 2023 · 2 comments

Comments

@Thesiva7
Copy link

Thesiva7 commented Jun 14, 2023

youtube video with react player is giving black screen while capturing with domtoimage

domtoimage
.toJpeg(data, { quality: 0.95, cacheBust: true, proxy: corsProxyUrl })
.then(function (dataUrl) {
var link = document.createElement('a');
link.download = 'my-image-name.jpeg';
link.href = dataUrl;
link.click();
});
any solution for this black screen.

@kent99821
Copy link

Have you solved this problem yet?

@IDisposable
Copy link
Member

IDisposable commented Jul 5, 2023

Sadly, this is a victim to cross domain iframes, I don't think we're ever going to accomplish a fix for this in a package. The best bet for that is image capture from a headless instance of Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants