node-red-contrib-hik-media-buffer 1.1.44 → 1.1.45
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 +1 -2
- package/package.json +1 -1
package/hik-media-buffer.js
CHANGED
|
@@ -168,8 +168,7 @@ module.exports = function(RED) {
|
|
|
168
168
|
|
|
169
169
|
try {
|
|
170
170
|
for (let t of tracks) {
|
|
171
|
-
const searchXml = `<?xml version="1.0" encoding="utf-8"?><CMSearchDescription><searchID>
|
|
172
|
-
|
|
171
|
+
const searchXml = `<?xml version="1.0" encoding="utf-8"?><CMSearchDescription><searchID>LAST_EVENT</searchID><trackIDList><trackID>${t.id}</trackID></trackIDList><timeSpanList><timeSpan><startTime>${startTime}</startTime><endTime>${endTime}</endTime></timeSpan></timeSpanList><maxResults>100</maxResults><metadataList><metadataDescriptor>//recordType.meta.std-cgi.com/${evento}</metadataDescriptor></metadataList></CMSearchDescription>`;
|
|
173
172
|
const resSearch = await nvrAuth.request({
|
|
174
173
|
method: 'POST', url: `${baseUrl}/search`, data: searchXml, headers: { "Content-Type": "application/xml" }
|
|
175
174
|
});
|