From 1e10963d28f14c883d3d378949f900b9b519798e Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Fri, 8 Mar 2024 06:32:03 +1300 Subject: [PATCH] camera-manager: use rtsp url as third argument This makes it more flexible in general. Signed-off-by: Julian Oes --- camera-manager/camera_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/camera-manager/camera_manager.cpp b/camera-manager/camera_manager.cpp index c3126ea..9571b0d 100644 --- a/camera-manager/camera_manager.cpp +++ b/camera-manager/camera_manager.cpp @@ -16,13 +16,13 @@ int main(int argc, char* argv[]) << "\n" << "Usage: " << argv[0] << " \n" << "\n" - << "E.g. " << argv[0] << " serial:///dev/ttyUSB0:57600 udp://192.168.1.51:14550 192.168.1.45\n"; + << "E.g. " << argv[0] << " serial:///dev/ttyUSB0:57600 udp://192.168.1.51:14550 rtsp://192.168.1.45:8554/live\n"; return 1; } const std::string mavsdk_connection_url{argv[1]}; const std::string groundstation_connection_url{argv[2]}; - const std::string our_ip{argv[3]}; + const std::string rtsp_url{argv[3]}; // SIYI setup first siyi::Messager siyi_messager; @@ -155,7 +155,7 @@ int main(int argc, char* argv[]) ret = camera_server.set_video_streaming(mavsdk::CameraServer::VideoStreaming{ .has_rtsp_server = true, - .rtsp_uri = std::string{"rtsp://"} + our_ip + std::string{":8554/live"}, + .rtsp_uri = rtsp_url, }); if (ret != mavsdk::CameraServer::Result::Success) {