I need to get the RTSP from a given camera to use it in a method. I’ve got the camera GUID but I lack the RTSP. How can I get it?
Milestone XProtect does not offer a RTSP streaming service in the core product. RTSP streaming is however part of the add-on product XProtect Open Network Bridge. There are instructions of use in the manual.
https://doc.milestonesys.com/latest/en-US/portal/htm/chapter-page-onvif.htm
So the answer is yes if you use this free add-on, if using the SDK (MIP SDK or Mobile SDK) you need to get the video feed differently.
First of all, looking into the ONVIF, the page you referred to is linked to version 2023 R3, however we are working with 2022 R3, does it work equally? If it does I guess that Milestone generates its own rtsp url to the stream other than the orignial?
Besides that, if we are using the MIPSDK, how should we go about this?
You would be able to download version 2022R3 of the XProtect Open Network Bridge, but the 2023R3 version would be compatible with version 2022R3 of the VMS and contain newer fixes and similar. So I recommend taking the newest..
If you mean to show the video I recommend using the UI component ImageViewerWpfControl
There are many samples, perhaps this one
If you need camera images you could use JpegLiveSource or BitmapLiveSource (JpegVideoSource or BitmapVideoSource if not live but playback).
A sample
If you prefer the raw video data, what the camera is sending unmodified you can use RawLiveSource (RawVideoSource), there is no sample for this, but about the data you will be receiving please see
What I need is more like a live feed, similar to what the imageViewer does. That’s why I was going for the rtsp. We want to do some inspection to the video and we need real time or close to, to complete the functionality. However, by only having the GUID we cant access the feed.
So RawLiveSource gives you a live feed and if you remove the header you have the original streaming video, with JpegLiveSource or BitmapLiveSource you get a stream of Jpegs or bitmaps, transcoded locally.
Note that if you prefer RTSP the add-on product XProtect Open Network Bridge is free.