Requesting stream for new added camera failed with error code: UnknownCameraId

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:

  1. Create connection (connect and login)

  2. Request stream for existing camera - use created connection

  3. Live stream works correctly

  4. Add new camera in Management Client

  5. Request stream for new added camera - use created connection from step 1

  6. Requesting stream failed with error code: UnknownCameraID

  7. Create new connection/Restart application

  8. 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.

Hi,

Yes you need to restart connection after adding new camera.

Kind regards,

Svetlana

Hi,

I would like to ask another question about this.

I tried to restart (dispose and connect/login again) connection manually after adding new camera. But as I mentioned we have common connection for all cameras so all live cameras streams from existing cameras stop working. It is not intended behavior.

Is it possible to restart connection without interrupting all camera live streams?

Thanks for reply.

Hi,

Before you can get live video , you need to establish a session. Once the session is destroyed , you no longer can get video using that session.

So, the answer is no.

/ Svetlana

Hi,

please how could I get information that camera was added?

I tried to subscribe notification events but it looks like such information is not part of notification events.

Thanks for answer

Hi,

Unfortunately we do not have a way to subscribe for new cameras added.