extract sdl cameras creation/deletion to service

and handle events
This commit is contained in:
Green Sky
2025-04-02 20:04:34 +02:00
parent 73d454e4eb
commit c7be863daf
6 changed files with 149 additions and 60 deletions

View File

@@ -45,6 +45,8 @@
#include "./tox_av_voip_model.hpp"
#endif
#include "./frame_streams/sdl/sdl_video_input_service.hpp"
#include <string>
#include <iostream>
#include <chrono>
@@ -103,6 +105,7 @@ struct MainScreen final : public Screen {
ToxNetprofUI tnui;
StreamManagerUI smui;
DebugVideoTap dvt;
SDLVideoInputService sdlvis;
PluginManager pm; // last, so it gets destroyed first