Exception in plugin when trying to start playback for ImageViewerControl

Hi,

I’m developing a plugin that displays recorded video and I control playback programmatically (I used VideoPreview plugin as a base).

First I send PlayStop & Goto commands, these work OK (I can see that timeline scrolls to correct time).

Then I issue PlayForward command and get this:

Unable to cast COM object of type 'System.__ComObject' to interface type 'VideoOS.RemoteViewer.AudioPlayerActiveXDotNet.IAudioPlayerActiveXImpl'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{C1037173-964F-49C9-9F35-CC8A4EA4576F}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). (mscorlib)

I tried to remove all code relevant to AudioPlayerControl but still keep getting this exception.

(Camera only has video streams BTW)

PS I’m using VMS 2018 R3, but MIP SDK is 2018 R1. Could this be the problem?

UPD: Installed MIP SDK 2018 R3, problem persists.

Thanks!

In a related thread (https://developer.milestonesys.com/s/question/0D50O00003fownnSAA/audio-playback-issues) I’ve found a comment that AudioPlayerDotNet.dll must be registered, tried that and it works!

(Still I don’t get why I need this, since camera doesn’t have a mic)