-
Notifications
You must be signed in to change notification settings - Fork 14
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
How to capture a screenshot using JPEG recorder? #132
Comments
Hey @thesanketkale what platform are you getting this error on? |
It was in Unity Editor on Windows 11. But since I replaced this implementation with the one you shared on discord, I am not getting any error now. We can close this for now. |
@thesanketkale can you share the implementation that works now? I'm considering adding it into VideoKit under |
Sure here is the working code to capture a screenshot using VideoKit API.
|
Thank you! |
Hi @olokobayusuf,
I am looking for a way to capture one photo of the 3D scene which will be saved to cache storage and could be shared later. How should I do it with the latest API changes?
In version 0.0.17 of VideoKit, I achieved this using the JPEG recorder in which I captured JPEG image sequences for 1 second and then took the last image in the image sequence as the final image. But this appears to be broken in the latest version 0.0.19 of VideoKit as I am getting the below exceptions while recording the JPEG image sequences:
Below is the code I currently use to capture the image:
Do you have a better approach to this with the latest API or will this approach work for my case? If this approach is ok, then how should I fix the exception?
The text was updated successfully, but these errors were encountered: