Added extension calls for starting and stopping a RTSP Video Stream for being used by OTS MEDIAMTX

This commit is contained in:
Valmo Trindade
2025-04-06 05:38:41 -03:00
parent 6eca9e92b6
commit 871d6ec9d3
2 changed files with 91 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ mod websocket;
mod util;
mod cot_router;
mod cot_generator;
mod video_stream;
#[arma]
pub fn init() -> Extension {
@@ -49,5 +50,11 @@ pub fn init() -> Extension {
.command("send_digital_pointer_cot", cot_router::send_digital_pointer_cot)
.command("stop", cot_router::stop)
)
.group(
"video_stream",
Group::new()
.command("start", video_stream::start_stream)
.command("stop", video_stream::stop_stream)
)
.finish()
}