We are working on a bug where SDK is not returning microphone via item.GetRelated() method call. However in our lab we get a microphone device 100% of the time. At the customer’s site they are not getting microphone devices. BUT occasionally we did get audio devices. We have spent a great deal of time ensuring that we are using the API correctly. It is very strange that we sometimes are getting the audio.
This is a bookmark export utility and basically we are not able to reliably get audio on an export of a bookmark.
Can you please check if you set related to the device in Management Client? Start Management Client – select Recording server – select a camera – click Client tab and see Related xxx.
Yes we confirmed that the cameras have related microphones. Despite this we only sometimes can get audio exported with the bookmark. This issue is odd and challenging because sometimes we get audio(rarely) but mostly we do not.
My developer wants to run the getrelated 5 times in a loop or until Milestone API returns something. We also added a foreach with GetChildren at the start time of our program’s launch. Clearly we can see the ‘microphone 1’ listed under the camera. But then later, when we run GetRelatedDevices and also filter for where the fqid.kind == Kind.Microphone we get nothing in the list.
Do you have the same issue on Smart Client in your customer’s site? For example, is it possible to hear audio from the camera when you start Smart Client and select Live/Playback tab? Can you please verify it? Also how did it look when testing with the Config Access Via SDK sample?
Doing a loop seems inappropriate, when you are sure you have the correct camera (Item) you ask GetRelated() once, anything else sounds wrong.
It is possible that a change made by me and unnoticed by our developer may have remedied the situation. Please stand by while we perform further tests at the customer’s site.