extract sdl cameras creation/deletion to service
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled

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