GenerateAudioPlayerControl() with SDK 2017 R2

Issues with our plugin for Milestone SDK 2017 R2. We are trying to access the Audio Player Control for each microphone hooked up to the cameras. This plugin has worked for all versions of Milestone until 2017 R2.

We get the AudioPlayerControl by calling VideoOS.RemoteClient.Application.MIP.Manager.SCClientCo\ntrol.Instance.GenerateAudioPlayerControl();

Then we call Initialize and Connect on the AudioPlayerControls.

It will usually fail to connect. Muting and Volume controls do not work either.

It appears there is an Audio Controller that the Milestone software is using that interferes with controlling an Audio Player Controller. It could potentially be a bug within their software. I am unsure of the exact cause.

I am able to get Audio Player Controls to work outside the Milestone software. With the SDK you can create an application that runs external to the Milestone XClient software. With my external application I am able to control the microphones as expected. I used similar logic as the SDK example ([C:\Program](file:C:/Program) Files\Milestone\MIPSDK\ComponentSamples\AudioDemo).

Please provide insight into this. Thanks.

You code looks like it is referencing the Smart Client directly, that is not intended. Please use ClientControl.Instance.GenerateAudiPlayerControl(windowInfomation) - so your plugin is independant of what version of Smart Client you install the Plugin-in on.

I just tested with the VideoPreview sample - and it works fine.

If you still have issue, please try that sample and see if that works for you.