|
|
|
@ -247,7 +247,7 @@ namespace Video.DomainService |
|
|
|
{ |
|
|
|
{ |
|
|
|
url = $"https://{ipaddress}/evo-apigw/admin/API/video/stream/realtime"; |
|
|
|
url = $"https://{ipaddress}/evo-apigw/admin/API/video/stream/realtime"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
dto.Data.StreamType = "2"; |
|
|
|
// 3) 用 HttpRequestMessage 发送,才能带上自定义头 |
|
|
|
// 3) 用 HttpRequestMessage 发送,才能带上自定义头 |
|
|
|
using var req = new HttpRequestMessage(HttpMethod.Post, url) |
|
|
|
using var req = new HttpRequestMessage(HttpMethod.Post, url) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -360,7 +360,7 @@ namespace Video.DomainService |
|
|
|
_logger.LogWarning("rtsp录像回放:token无效"); |
|
|
|
_logger.LogWarning("rtsp录像回放:token无效"); |
|
|
|
return new DaHApiResult<UrlDataDto> { Success = false, Code = "1009", Msg = "token无效" }; |
|
|
|
return new DaHApiResult<UrlDataDto> { Success = false, Code = "1009", Msg = "token无效" }; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
dto.Data.StreamType = "2"; |
|
|
|
var url = $"https://{_configuration["DahuaAuth:Host"]}/evo-apigw/admin/API/SS/Playback/StartPlaybackByTime"; |
|
|
|
var url = $"https://{_configuration["DahuaAuth:Host"]}/evo-apigw/admin/API/SS/Playback/StartPlaybackByTime"; |
|
|
|
if (ipaddress != null) |
|
|
|
if (ipaddress != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -428,7 +428,7 @@ namespace Video.DomainService |
|
|
|
_logger.LogWarning("rtsp实时预览接口方式:token无效"); |
|
|
|
_logger.LogWarning("rtsp实时预览接口方式:token无效"); |
|
|
|
return new DaHApiResult<UrlDataDto> { Success = false, Code = "1009", Msg = "token无效" }; |
|
|
|
return new DaHApiResult<UrlDataDto> { Success = false, Code = "1009", Msg = "token无效" }; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
dto.Data.StreamType = "2"; |
|
|
|
var url = $"https://{_configuration["DahuaAuth:Host"]}/evo-apigw/admin/API/MTS/Video/StartVideo"; |
|
|
|
var url = $"https://{_configuration["DahuaAuth:Host"]}/evo-apigw/admin/API/MTS/Video/StartVideo"; |
|
|
|
if (ipaddress != null) |
|
|
|
if (ipaddress != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|