Skip to content

Commit

Permalink
ptz-http-backend: Add HTTP backend
Browse files Browse the repository at this point in the history
  • Loading branch information
norihiro committed Sep 16, 2024
1 parent 8309b4b commit 08efb0c
Show file tree
Hide file tree
Showing 4 changed files with 459 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ set(PLUGIN_SOURCES
src/helper.cpp
src/ptz-backend.cpp
src/obsptz-backend.cpp
src/ptz-http-backend.cpp
src/dummy-backend.cpp
)

Expand Down
3 changes: 3 additions & 0 deletions src/face-tracker-ptz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifdef WITH_PTZ_TCP
#include "libvisca-thread.hpp"
#endif
#include "ptz-http-backend.hpp"
#include "dummy-backend.hpp"

#define PTZ_MAX_X 0x18
Expand Down Expand Up @@ -107,6 +108,7 @@ static const struct ptz_backend_type_s backends[] =
#ifdef WITH_PTZ_TCP
BACKEND("visca-over-tcp", libvisca_thread),
#endif // WITH_PTZ_TCP
BACKEND("http", ptz_http_backend),
BACKEND("dummy", dummy_backend),
{NULL, NULL, NULL}
#undef BACKEND
Expand Down Expand Up @@ -452,6 +454,7 @@ static obs_properties_t *ftptz_properties(void *data)
#ifdef WITH_PTZ_TCP
obs_property_list_add_string(p, obs_module_text("VISCA over TCP"), "visca-over-tcp");
#endif // WITH_PTZ_TCP
obs_property_list_add_string(p, obs_module_text("HTTP"), "http");
obs_property_set_modified_callback(p, ptz_type_modified);

obs_properties_add_bool(pp, "invert_x", obs_module_text("Invert control (Pan)"));
Expand Down
Loading

0 comments on commit 08efb0c

Please sign in to comment.