cmd: add /status.json to describe what and how it works

This commit is contained in:
Kamil Trzcinski
2022-09-03 12:14:01 +02:00
parent aafd120af3
commit b2dfba5577
12 changed files with 195 additions and 12 deletions

View File

@ -244,6 +244,7 @@ extern "C" int rtsp_server(rtsp_options_t *options)
buffer_lock_register_notify_buffer(&video_lock, rtsp_h264_capture);
pthread_create(&rtsp_thread, NULL, rtsp_server_thread, env);
options->running = true;
return 0;
error:

View File

@ -1,6 +1,7 @@
#pragma once
typedef struct rtsp_options_s {
bool running;
uint port;
} rtsp_options_t;