node-red-contrib-hik-media-buffer 1.1.133 → 1.1.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hik-media-buffer.js +4 -3
- package/package.json +1 -1
package/hik-media-buffer.js
CHANGED
|
@@ -242,7 +242,8 @@ module.exports = function(RED) {
|
|
|
242
242
|
const uriMatch = xmlString.match(/<playbackURI>([\s\S]*?)<\/playbackURI>/i);
|
|
243
243
|
|
|
244
244
|
if (uriMatch && uriMatch[1]) {
|
|
245
|
-
const playbackURIGrezzo =
|
|
245
|
+
const playbackURIGrezzo = `rtsp://192.168.62.131/Streaming/tracks/201/?starttime=20260629T134005&endtime=20260629T134015`;
|
|
246
|
+
//uriMatch[1].trim();
|
|
246
247
|
|
|
247
248
|
const payloadDownload = `<?xml version="1.0" encoding="UTF-8"?>
|
|
248
249
|
<downloadRequest>
|
|
@@ -251,8 +252,8 @@ module.exports = function(RED) {
|
|
|
251
252
|
|
|
252
253
|
const resDownVideo = await nvrAuth.request({
|
|
253
254
|
method: 'GET',
|
|
254
|
-
url:
|
|
255
|
-
|
|
255
|
+
url: `${node.protocol}://${node.host}:${node.port}/ISAPI/ContentMgmt/download`,
|
|
256
|
+
data: payloadDownload,
|
|
256
257
|
headers: { "Content-Type": "application/xml" },
|
|
257
258
|
responseType: 'arraybuffer',
|
|
258
259
|
httpsAgent: node.protocol === "https" ? httpsAgent : undefined
|