Detect if Live stream is unavailable

Hi,

How can I detect from a Smart Client Plugin if there is a viewitem in the current view (fixed or temp) where the Live stream is not working.

So most of the time this is when recording server is down.

I can’t seem to find an event or an easy way to do this in smart client (messages/event handlers).

Is the only way to know for sure to request a live stream via SDK?

Or contact recorder (status) to get status of specific camera?

Kind regards,

Kenny

The “LiveStreamInformationEvent” can help you.

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_client_1_1_image_viewer_add_on.html&tree=tree_search.html?search=livestreaminformation

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_client_1_1_live_stream_information_event_args.html&tree=tree_search.html?search=livestreaminformation

Hi Bo,

I already found this interesting event and did some tests with it.

The problem is I don’t get this event when a live stream stops working. So for example when I stop the recorder, this event is not triggered.

KR,

Kenny

I did not realize while writing the first answer but you are right. I must conclude that the ImageViewerWpfControl/ImageViewerControl (IVC) simply stops putting out the event if the recording server is not responding, whereas for camera failure or similar you will get events.

The IVC does switch the indicator to grey so internally it is aware of a state change. With the event not happening for the scenario you could detect the absence of events, not elegant but maybe feasible. Another method of detecting that the recording server is not responding is seen in the Status Viewer sample.

I will try to raise a discussion for future development works with Milestone Development but there will not be a change to this in the foreseeable future. I hope you will be able to find a workaround or find acceptance that camera errors but not recording server crashes can be detected in your solution.