From 2f649f5e2d87564a14f5d89bb1f817efd675ab58 Mon Sep 17 00:00:00 2001 From: zqc <835569504@qq.com> Date: Tue, 3 Mar 2026 09:37:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96hls=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E6=96=B9=E6=B3=95=E5=A2=9E=E5=8A=A0stream=20?= =?UTF-8?q?type=E7=94=A8=E6=9D=A5=E6=8C=87=E5=AE=9A=E4=B8=BB=E7=A0=81?= =?UTF-8?q?=E6=B5=81=E5=AD=90=E7=A0=81=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hls_downloader.py | 2 +- test_cam.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hls_downloader.py b/hls_downloader.py index 9da3f6d..544cb44 100644 --- a/hls_downloader.py +++ b/hls_downloader.py @@ -57,7 +57,7 @@ def get_hls_url(index_code: str) -> Optional[str]: """获取HLS播放地址""" try: import test_cam - result = test_cam.get_camera_hls_url(index_code) + result = test_cam.get_camera_hls_url(index_code, 0) if result.get("code") == "0" and result.get("data", {}).get("url"): return result["data"]["url"] else: diff --git a/test_cam.py b/test_cam.py index 87161a3..a6beb6d 100644 --- a/test_cam.py +++ b/test_cam.py @@ -39,7 +39,7 @@ def get_camera_preview_url(camera_index_code): } } -def get_camera_hls_url(camera_index_code): +def get_camera_hls_url(camera_index_code, stream_type = 0): """测试用的方法,直接返回固定结果""" return { "code": "0",