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.
@@ -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 = uriMatch[1].trim();
245
+ const playbackURIGrezzo = `rtsp://192.168.62.131/Streaming/tracks/201/?starttime=20260629T134005&amp;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: `rtsp://192.168.62.131/Streaming/tracks/201/?starttime=2026-06-29T13:40:06Z;endTime=2026-06-29T13:40:16Z`,
255
- //data: payloadDownload,
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-hik-media-buffer",
3
- "version": "1.1.133",
3
+ "version": "1.1.135",
4
4
  "description": "Ottiene buffer video e immagine da camere Hikvision via ISAPI",
5
5
  "keywords": [
6
6
  "node-red",