We have currently implemented the following code using MIP SDK 3.6
[DllExport(“getCamera”, CallingConvention = CallingConvention.StdCall)]
public static bool getCamera(int id, ref InOutData data, int handlerID)
{
AlarmHandler \_handler;
if (!handler.TryGetValue(handlerID, out \_handler))
{
return false;
}
InOutData aux = new InOutData();
int i = 0;
foreach (KeyValuePair<string, string> entry in \_handler.listCamera)
{
// do something with entry.Value or entry.Key
if (i == id)
{
Console.WriteLine("camera Name:" + entry.Value);
[aux.name](https://aux.name) = entry.Key + "///" + Utf16ToUtf8(entry.Value);
break;
}
i++;
}
data = aux;
InOutData.Populate([aux.name](https://aux.name), "", out data);
return true;
}
to obtain an unique id to identify each camera in our system.
The problem is that this id sometimes changes in some circumstances that we are not aware (grouping cameras in folders!? changing some parameters in milestone!?).
So since we use this as our uniqueID for our system it appears the camera was changed. Is there any other id we can use to identify the cameras and then request video? What affects this id?