I cannot help you directly, but you essentially just need to figure out how to write to a texture. And then create a texture of every frame the camera sees. Browsing the docs I found this: Render to Texture Toolset Setup | Unreal Engine Documentation
Sorry I couldn’t be more specific.
(Also I am sure there are better ways. But I have implemented something similar to this in Unity C# before and it worked well)