Access SmartClient AudioPlayerControl

We have a ViewItemPlugin that plays high quality audio that we want to hear instead of the audio recorded by cameras. We currently need to manually mute the audio in the smart client so it doesn’t interfere with the audio we’re playing.

We’d like to programatically mute the AudioPlayerControl each time our plugin starts. This seems possible as AudioPlayerControl publishes a Mute property.

ClientControl.Instance seems to allow us to get a reference to the PlaybackController, and some documentation suggests that this PlaybackController also controls an AudioPlayerControl, but doesn’t publish a reference to it.

Is there any way take control of SmartClient’s built in AudioPlayerController, or otherwise default to muting audio?

Ben,

I will try to get you an answer, but I need to dive into the topic myself.

/Torsten

Hej Ben,

here is an answer for you (from R&D): I checked the documentation as well as the source code for the Smart Client and as far as I can see there is no way to achieve this from the SDK.

As far as I can see there is one AudioController (not the same as SDK AudioPlayerControl), but this is not exposed in the SDK and currently there are no messages for controlling it. I would not expect it to be that difficult to implement though, but will definitely not happen for 2016 R2. Sorry for not being able to give you a better answer.

Torsten

Thanks