How to capture a specific video frame from Unity VideoPlayer using the nreal cameraParameters?

Hello everyone, I am trying to build a feature where the user is able to take a screenshot of a specific frame when watching a video via the Unity VideoPlayer object. So far, I am only able to capture the virtual image which captures the VideoPlayer but also UI components surrounding it. I was wondering whether there was a way to capture only within the regions of the VideoPlayer excluding everything else please?

Thank you so much.

You can get the current frame of the video from VideoPlayer.Texture.

Use these Steps to convert Texture to Texture2D

Then you can save that texture2d to file. Just Google it there are ton of tutorials for it.