获取hls下载地址方法增加stream type用来指定主码流子码流
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user