|
|
|
|
@ -106,14 +106,14 @@ namespace Video.API.Controllers.DaHua |
|
|
|
|
} |
|
|
|
|
var remoteUrl = |
|
|
|
|
$"https://{_configuration["DahuaAuth:Host"]}/evo-apigw/evo-httpnode/vod/cam/download.mp4" + |
|
|
|
|
$"?vcuid={dto.Vcuid}" + |
|
|
|
|
$"?vcuid={dto.Vcuid.Replace("$", "%24")}" + |
|
|
|
|
$"&subtype=1" + |
|
|
|
|
$"&starttime={dto.Starttime:yyyy_MM_dd_HH_mm_ss}" + |
|
|
|
|
$"&endtime={dto.Endtime:yyyy_MM_dd_HH_mm_ss}" + |
|
|
|
|
$"&videoType={dto.VideoType}" + |
|
|
|
|
$"&token={token}" + |
|
|
|
|
$"&token={token.Replace("bearer ", "")}" + |
|
|
|
|
$"&recordType={dto.RecordType}"; |
|
|
|
|
// return await Task.FromResult(remoteUrl); |
|
|
|
|
|
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
var handler = new HttpClientHandler |
|
|
|
|
|