Commit 0b58ecdf authored by tianbo's avatar tianbo

feat(video): 添加视频协议类型设置

- 在解析视频URL的同时,增加了视频协议类型字段的设置- 从请求参数中获取"protocol"字段,并将其设置为视频的类型
parent a928be6d
...@@ -114,6 +114,7 @@ public class BaseEnterpriseVideoServiceImpl extends BaseService<BaseEnterpriseVi ...@@ -114,6 +114,7 @@ public class BaseEnterpriseVideoServiceImpl extends BaseService<BaseEnterpriseVi
JSONObject dataObj = (JSONObject) result.get("data"); JSONObject dataObj = (JSONObject) result.get("data");
String cameraUrl = dataObj.getString("url"); String cameraUrl = dataObj.getString("url");
video.setUrl(cameraUrl); video.setUrl(cameraUrl);
video.setType(param.getString("protocol"));
} }
} catch (URISyntaxException e) { } catch (URISyntaxException e) {
throw new RuntimeException("URL格式解析异常", e); throw new RuntimeException("URL格式解析异常", e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment