Show two camera feeds on one device

Hi all,

New to flutter, had an idea I want to try to build but I’m not quite sure how complicated it will be. Any tips and ideas for what I can use to accomplish this is much appriciated.

Simply put, what I want is an app that can show me two camera feeds from two different devices, on one of them, with the option to watch a 10 second replay.

  1. Device A is set up and the app shows its camera feed.

  2. Device B is set up and the app sends its camera feed to Device A, so I can see both cameras on Device A. I’m open to suggestions on how they should communicate, either a local wifi network or bluetooth.

  3. I can hit a button on Device A that says “show replay”, which should show a replay of the last 10 seconds from both cameras.

I don’t want the entire session to be saved as a large video file if it can be avoided, it’s only the 10 seconds after I pressed “show replay” that should be saved. Once the replay is finished it starts recording again, giving me a new option to show a new replay of the previous 10 seconds.

I guess I would have to record and save the entire video feed and then “cut out” the last 10 seconds, throw away the rest, show the replay, and then start a new recording? I’m worried it will record for a long time, using a lot of space, if it takes a while before someone presses “show replay”. Or can you “buffer” the video so you can “clip” the last 10 seconds without saving the entire thing?

I’m confused whether you want “the next ten seconds” or “the past ten seconds” when you push this replay button. If the latter, you’ll need to continuously record chunks, and cycle out the older ones when they’d never been needed for replay.