How can i find the name of the camera inside "void OnLiveContentEvent(MetadataLiveSource sender, MetadataLiveContent e)" event? I can see a hidden non public property named "sender._item.Name" but unfortunately it's not accessible within the event .?

A Metadata source and a Camera source are two different things so unfortunately you will not know the camera immediately by looking at the event parameters.

You will have to go through the list of cameras in the configuration, for each camera see related Devices and find the Metadata device you have. You can see the configuration information if you explore the ConfigAccessViaSDK sample.

There is a bug that if you go through the configuration in the plugin environment in Management Client you will not get the related Metadata on the camera. You can see this if you run the ConfigDump tool sample. This bug is fixed in XProtect Corporate 2017R1 (planned release in mid-February.)

Together with the fix (in 2017R1) it is implemented that you can in the configuration see the camera as a related device when looking at the Metadata devices, so that you do not have to traverse all the cameras to find the Metadata device

Hi Bo,

Thanks for your prompt reply. As you have mentioned I can go through the list of cameras to access it’s Metadata device (Under related Devices).

But then how can I get the “MetadataString” (Eg. Latitude, Longitude for mobile push) for that camera.

All I am doing right now is creating a new “MetadataLiveSource” object and calling following events to access it’s metadata string.

- LiveContentEvent

- LiveStatusEvent

Any advice that you could provide would be very helpfull on this.