Camera status is not updated on API get
CompletedHello there,
I hope you all are doing well.
We are using the legacy API and the recent v5 REST API to integrate NX into our system.
We notice that a camera status has a discrepancy because in our NX Client the camera is "offline" but when we call "ec2/getCamerasEx" (legacy) or "rest/v1/devices" (REST API) the camera status is "recording". Its camera server is offline and its other cameras were moved to another server (by fallback) but a camera stays in the server (who is offline) causing this problem (wrong status).
Thanks
-
Yes,
Offline server
Server OS: Windows_x64 10.0.19045
VMS Version: 5.0.0.35745
Fallback server
Ubuntu 20.04
VMS Version: 5.0.0.35745
http://10.1.12.76:7001/rest/v1/servers
{
"endpoints":[
"[fe80::97:29a:9e81:3b0e%2]:7001",
"10.2.10.75:7001"
],
"flags":"SF_Has_HDD|SF_SupportsTranscoding",
"id":"{2d3f2222-bc02-a938-654a-e05589c82253}",
"maxCameras":128,
"name":"HO PICO",
"osInfo":{
"platform":"windows_x64",
"variantVersion":"10.0.19045"
},
"parameters": {
/* a lot of parameters */
},
"certificate":"",
"cpuArchitecture":"x86_64",
"cpuModelName":"Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz",
"fullVersion":"5.0.0.35745-3bec50d5e175-default",
"metadataStorageId":"{124ce11d-c619-b1ee-bce8-f5208fc781ae}",
"networkInterfaces":"Intel(R) Ethernet Connection I219-V: 125000000 bps",
"physicalMemory":8460070912,
"productNameShort":"hdwitness",
"publicationType":"release",
"systemRuntime":"Windows 10",
"timezoneUtcOffset":-14400000
},
"storages":[
{
"id":"{124ce11d-c619-b1ee-bce8-f5208fc781ae}",
"isUsedForWriting":true,
"name":"Initial",
"parameters":{
"space":1000203087872
},
"path":"E:\\HD Witness Media",
"serverId":"{2d3f2222-bc02-a938-654a-e05589c82253}",
"spaceLimitB":32212254720,
"status":"Online",
"type":"local"
},
{
"id":"{343c8729-b0ea-640d-e9ba-e72b30e7243c}",
"isUsedForWriting":true,
"name":"Initial",
"parameters":{
"space":63342940160
},
"path":"C:\\HD Witness Media",
"serverId":"{2d3f2222-bc02-a938-654a-e05589c82253}",
"spaceLimitB":10737418240,
"status":"Online",
"type":"local"
}
],
"url":"https://10.2.10.75:7001",
"version":"5.0.0.35745"http://10.1.12.76:7001/rest/v1/devices
{
"capabilities":"audioTransmit|customMediaPorts|absoluteTimestamps|multicastStreaming|isOnvif",
"credentials":{
"password":"********",
"user":"********"
},
"id":"{790d4893-25fb-4805-30a5-4b73d519909e}",
"isLicenseUsed":true,
"mac":"70-F8-E7-80-A5-08",
"model":"ESG-IPDW4F2",
"motion":{
"mask":"5,0,0,44,32",
"recordAfterS":3,
"recordBeforeS":3,
"type":"software"
},
"name":"HO Estudio ECS IPDW4F2",
"options":{
"dewarpingParams":"{\"cameraProjection\":\"equidistant\",\"enabled\":false,\"fovRot\":0,\"hStretch\":1,\"radius\":0.5,\"sphereAlpha\":0,\"sphereBeta\":0,\"viewMode\":\"ceiling\",\"xCenter\":0.5,\"yCenter\":0.5}",
"isAudioEnabled":true,
"preferredServerId":"{de588bc4-b69d-f8f2-10af-7504dfde0487}"
},
"parameters":{
"DeviceUrl":"http://10.2.10.164:80/onvif/device_service",
"audioCodec":"PCM",
"bitrateInfos":{
"streams":[
{
"actualBitrate":3.692401885986328,
"actualFps":14.997723579406738,
"averageGopSize":25,
"bitrateFactor":1,
"encoderIndex":"primary",
"fps":14,
"isConfigured":true,
"numberOfChannels":1,
"rawSuggestedBitrate":7.0478515625,
"resolution":"2560x1440",
"suggestedBitrate":3.692401885986328,
"timestamp":"2022-12-09T11:54:22Z"
},
{
"actualBitrate":0.16340160369873047,
"actualFps":7.000027179718018,
"averageGopSize":35.5,
"bitrateFactor":1,
"encoderIndex":"secondary",
"fps":7,
"isConfigured":true,
"numberOfChannels":1,
"rawSuggestedBitrate":0.505859375,
"resolution":"640x360",
"suggestedBitrate":0.1875,
"timestamp":"2022-12-09T11:54:45Z"
}
]
},
"driverClass":"nx::vms::server::plugins::onvif::Resource",
"firmware":"IPC_G6102-B5022P12D1812C15",
"hasDualStreaming":1,
"isAudioSupported":1,
"keepCameraTimeSettings":1,
"mediaCapabilities":{
"streamCapabilities":[
{
"key":"primary",
"value":{
"defaultFps":25,
"maxBitrateKbps":8888,
"maxFps":25,
"minBitrateKbps":192
}
},
{
"key":"secondary",
"value":{
"defaultFps":25,
"maxBitrateKbps":1276,
"maxFps":25,
"minBitrateKbps":192
}
}
]
},
"mediaStreams":{
"streams":[
{
"codec":27,
"resolution":"2560x1440",
"transports":[
"rtsp",
"hls"
]
},
{
"codec":27,
"encoderIndex":1,
"resolution":"640x360",
"transports":[
"rtsp",
"hls"
]
},
{
"encoderIndex":-1,
"resolution":"*",
"transcodingRequired":true,
"transports":[
"rtsp",
"mjpeg",
"webm"
]
}
]
},
"motionStream":"secondary",
"streamUrls":{
"1":"rtsp://10.2.10.164/media/video1",
"2":"rtsp://10.2.10.164/media/video2"
},
"useMedia2ToFetchProfiles":"autoSelect"
},
"physicalId":"70-F8-E7-80-A5-08",
"schedule":{
"isEnabled":true,
"maxArchiveDays":-30,
"maxArchivePeriodS":-2592000,
"minArchiveDays":-1,
"minArchivePeriodS":-86400,
"tasks":[
{
"endTime":86400,
"fps":15,
"metadataTypes":"motion",
"recordingType":"metadataOnly",
"streamQuality":"high"
},
{
"dayOfWeek":2,
"endTime":86400,
"fps":15,
"metadataTypes":"motion",
"recordingType":"metadataOnly",
"streamQuality":"high"
},
{
"dayOfWeek":3,
"endTime":86400,
"fps":15,
"metadataTypes":"motion",
"recordingType":"metadataOnly",
"streamQuality":"high"
},
{
"dayOfWeek":4,
"endTime":86400,
"fps":15,
"metadataTypes":"motion",
"recordingType":"metadataOnly",
"streamQuality":"high"
},
{
"dayOfWeek":5,
"endTime":86400,
"fps":15,
"metadataTypes":"motion",
"recordingType":"metadataOnly",
"streamQuality":"high"
},
{
"dayOfWeek":6,
"endTime":86400,
"fps":15,
"metadataTypes":"motion",
"recordingType":"metadataOnly",
"streamQuality":"high"
},
{
"dayOfWeek":7,
"endTime":86400,
"fps":15,
"metadataTypes":"motion",
"recordingType":"metadataOnly",
"streamQuality":"high"
}
]
},
"serverId":"{2d3f2222-bc02-a938-654a-e05589c82253}",
"status":"Recording",
"typeId":"{9a55ee6b-a595-5807-a5ba-d4aff697dc12}",
"url":"http://10.2.10.164:80/onvif/device_service",
"vendor":"Eclipse"
} -
Hi,
Thank you for your response.
in our NX Client the camera is "offline"...
but a camera stays in the server (who is offline) causing this problem (wrong status).
Could you, please, share a screenshot of Nx Client where you determine the "offline" status of the camera?
Have you tried to restart the Nx Client application and connect to the Server staying online?
Is the issue reproducible? Has it happened just once, or you can consistently reproduce it? Could you share the step-by-step description for reproducing the issue?
Please sign in to leave a comment.
Comments
3 comments