-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
react-to-print does not wait for videos to load #439
Comments
Hello. Thanks for reporting the issue. Have you tried with |
Thank you @MatthewHerbst . I've just tried Here's a sandbox where I've placed a video in the components to print. The https://codesandbox.io/s/react-to-print-forked-402y0 Thanks for looking into this. |
Hello. I hope you are having a good holiday. I've had time to experiment with this and have been having a very hard time getting the browser to wait to print until the video is loaded in a state that the print dialog will take the currently loaded frame. However, I have seen that even existing versions of the library will properly show |
The fix for this is published in |
Hi there
I'm using react-to-print to print a page which has some video elements on it. At the moment it loads the video component but doesn't wait for the thumbnail of the video to load.
I've tried to use
onBeforePrint
to wait until theloadeddata
events of the videos have all run but it doesn't seem to work. I'm guessing it won't be possible without updating thereact-to-print
source code to wait for the video thumbnails to load similar to what's being done for images here? https://github.com/gregnb/react-to-print/blob/master/src/index.tsx#L320Please let me know if I'm correct or if there is a way of waiting for videos to load.
Thank you!
The text was updated successfully, but these errors were encountered: