Creating a Custom Bodycam Feature with Save and Replay Functionality for Third Party Integration

  1. What do you want to achieve? The ability to save and replay footage and the ability to play it in third parties while keeping the same functionality, really being able to send it through webhooks while being able to play/watch it inside of the respective third party. Pretty much like a mp4 file just not a mp4 file. So pretty much, I am creating a bodycam and a feature I have planned is Video Logs. This will record footage of whatever the player is doing like a real bodycam, the recording starts when the user activates the camera until they deactivate it.

  2. What is the issue? I got 0 idea on how I could create this because of how it needs to be designed to be sent to a third party. If you believe it is not currently possible to send it to a third party, how can I save it inside of Roblox using DataStoreService? Along with this, how would I even do the recording part?

  3. What solutions have you tried so far? I have searched through the Developer Hub, DevForum, Youtube, Google Searches, and even asked other programmers some owning a Roblox Technology Group.

If someone can tell me on how I could program this or what resources I need or whatever I need to do to create this, please let me know!

4 Likes

This is just impossible at the moment. Communicating to a third party is easily done with HttpService, but recording the footage cannot be done.

2 Likes

Here’s another suggestion for you, you can program a 2D Map showing the path of players and their actions (Such as combat, killing, or other ingame actions) and plot them using CSS and Java

You will place this Java (or Node) application on a hosting website and make scripts ingame call the application using HttpService, containing 3D position data and what they executed.

2 Likes

Hm. Could it possibly be done using the technique that sport games use like Football Fusion 2 for their replay system? But in this case, the replay would be from camera activation to camera deactivation and just save it into DataStoreService?

And access it and load the replay onto a UI when it is requested?

2 Likes

Note that DataStoreService has a limit of 4MB, so if you’re constantly recording all events of everything from every police officer’s perspective at once, that limit will be reached quite quickly.

I would recommend using a third party service paired with HTTPService for this.

1 Like

You could easily code and host the third party system with Repl.it

2 Likes

4 MB = 4,194,304 bytes
One cframe is 48 bytes
Total number of frames = 4,194,304 bytes / 48 bytes = 87,381 frames
If we had 50 cops
87,381 frames / 50 players = each cop would get 1,747.62 frames

You could prob get a cframe lower than 48 bytes to 13 bytes to get 6,452.94 frames and obviously you should add a delay between taking frames.

2 Likes

It is not going to be for my game, it is a model I am releasing to the public.

But how would I do this?

2 Likes

How could I do this in the sense of reliable frame saving?

2 Likes

tis’ possible now with this, I’ve experimented it and its as close as it gets to it. VPF Replay Module