Skip to content

Commit

Permalink
Log the 'default profile' RTSP URL for UDP and TCP modes
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHardiman committed May 31, 2018
1 parent 3f9b449 commit 48d61c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion onvif-audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ function perform_audit(ip_address, port, username, password, folder) {
});
} catch (err) { callback(); }
},
/*
function (callback) {
try {
cam_obj.getStreamUri({
Expand All @@ -276,6 +275,8 @@ function perform_audit(ip_address, port, username, password, folder) {
});
} catch (err) { callback(); }
},
/* Multicast is optional in Profile S, Mandatory in Profile T
but could be disabled
function (callback) {
try {
cam_obj.getStreamUri({
Expand Down Expand Up @@ -341,6 +342,12 @@ function perform_audit(ip_address, port, username, password, folder) {
msg += 'Serial Number:= unknown\r\n';
msg += 'Hardware ID:= unknown\r\n';
}
if (got_live_stream_tcp) {
msg += 'First Live TCP Stream: = ' + got_live_stream_tcp.uri + '\r\n';
}
if (got_live_stream_udp) {
msg += 'First Live UDP Stream: = ' + got_live_stream_udp.uri + '\r\n';
}
fs.write(log_fd, msg, function (err) {
if (err)
console.log('Error writing to file');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onvif-site-audit",
"version": "0.5.0",
"version": "0.5.2",
"author": "Roger Hardiman <[email protected]>",
"description": "ONVIF Camera Audit Tool",
"main": "/audit.js",
Expand Down

0 comments on commit 48d61c7

Please sign in to comment.