How to capture game in real time?

Ola, I want to capture my game in real time, because I want to send all those captures to another place through Wi - Fi, I mean, I want to make it like streaming, does anyone know how ?, I’m going to use a router as an access point and anyone who connects to that access point will receive the video or capture the game in real time.

Thank you very much for your answers.

Do you want to have this functionality built into your game?

Yes, I want to record the game and send it via Wi-Fi to another place using a router as a local network

There believe is no built-in functionality for this in the engine. So lets look at the approaches and alternatives arranged by difficulty from easiest to hardest:

A. Use third party broadcast software. Steam, OBS, Shadowplay, etc…

B. Implement spectator in your game. Downside of this is that only those who has game installed can spectate.

C. Integrate OBS right in your game. It’s an open source software with license that allows such usage. But thats relatively hard.

Offtopic: you may want to visit UE4’s replay system Using the Replay System in Unreal Engine | Unreal Engine 5.1 Documentation

Thanks for you answer, now my next question jeje, I found a way to record with a Windows.h library, but would it be possible to use it without affecting ue4? doing on the one hand that I only need it for windows and it does not work on any other platform