From b46e1ff1c627cb6eaaa2ccd42a2da69d594d22f1 Mon Sep 17 00:00:00 2001 From: Jing Li Date: Sat, 30 Dec 2023 23:06:03 +0800 Subject: [PATCH] Update --- app/Http/Controllers/DeviceController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/DeviceController.php b/app/Http/Controllers/DeviceController.php index 0f08520..6b6cea3 100644 --- a/app/Http/Controllers/DeviceController.php +++ b/app/Http/Controllers/DeviceController.php @@ -815,13 +815,13 @@ class DeviceController extends Controller if ($wsConfig['ssl'] && $wsConfig['host']) { $address = sprintf( - 'https://%s/rtsp?url=%s', + 'wss://%s/rtsp?url=%s', $wsConfig['host'], base64_encode($rtspUrl), ); } else { $address = sprintf( - 'http://%s:%s/rtsp?url=%s', + 'ws://%s:%s/rtsp?url=%s', $wsConfig['ip'], $wsConfig['port'], base64_encode($rtspUrl),