Hello,
we show camera live streams from milestone mobile server in our application. Everything works perfectly for existing cameras (live stream is shown). If we add new hardware (camera) in Milestone XProtect Management Client then requesting stream for added camera failed with error UnknownCameraId. (We use the same connection for both existing and new cameras). After new connection is created (application is restarted) requesting stream for new camera works correctly.
For requesting stream we use Connection.Video.RequestStream from namespace VideoOS.Mobile.SDK.Portable.Server.Base.Connection.
Steps to reproduce:
-
Create connection (connect and login)
-
Request stream for existing camera - use created connection
-
Live stream works correctly
-
Add new camera in Management Client
-
Request stream for new added camera - use created connection from step 1
-
Requesting stream failed with error code: UnknownCameraID
-
Create new connection/Restart application
-
Live stream for new cameras works correctly
Please do we need to restart connection after camera is added in milestone manually?
How can we know that new camera was added? Is there any notification we can subscribe?
Thanks for answer.