Compare commits
4 Commits
836eabf5aa
...
44c97a14af
| Author | SHA1 | Date | |
|---|---|---|---|
| 44c97a14af | |||
| 1bf3aa2ead | |||
| d215c53629 | |||
| ffcae59124 |
@@ -17,7 +17,7 @@ def init_config(config_path: str = "config.yaml"):
|
||||
Args:
|
||||
config_path: 配置文件路径,默认为 config.yaml
|
||||
"""
|
||||
global ALERT_PUSH_URL
|
||||
global ALERT_PUSH_URL, HLS_ROOT_PATH
|
||||
|
||||
try:
|
||||
with open(config_path, "r", encoding="utf-8") as f:
|
||||
|
||||
@@ -176,7 +176,7 @@ class RTSPService:
|
||||
|
||||
self.stop_event = threading.Event()
|
||||
self.raw_queue = queue.Queue(maxsize=2)
|
||||
self.ws_queue = queue.Queue(maxsize=1000)
|
||||
self.ws_queue = queue.Queue(maxsize=10)
|
||||
|
||||
self.capture_workers = []
|
||||
self.biz_processor = get_processor(self.algorithm)(self.raw_queue, self.ws_queue, self.stop_event, self.cameras)
|
||||
|
||||
@@ -34,8 +34,8 @@ def get_camera_preview_url(camera_index_code):
|
||||
"msg": "SUCCESS",
|
||||
"data": {
|
||||
# "url": "rtsp://192.168.110.139:8554/test"
|
||||
"url": "rtsp://192.168.43.33:8554/test"
|
||||
# "url": "rtsp://localhost:8554/test"
|
||||
# "url": "rtsp://192.168.43.33:8554/test"
|
||||
"url": "rtsp://localhost:8554/test"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user