MIP: Error: Unable to connect to toolkit!

Hi there,

We am currently facing an issue when using VideoOS.Platform.SDK.Export.

We have some code that is working fine when connecting to a 2018 R1 Professional+ installation. However, the exact same code, when connecting to a Professional installation gives us the following exception (also using the same camera) :

MIP: Error: VideoOS.Platform.SDK.Export.MediaDataInspector.TrimStartAndEndTime ():Unable to connect to toolkit! -

The thread ‘MKVExport Thread’ (0x1650) has exited with code 0 (0x0).

The following code seems to start the export fine and the Progress goes up to 100 successfully: (On Professional+ R1)

mExporter.StartExport(mStartTime.ToUniversalTime(), mStopTime.ToUniversalTime()))

However, the exact same code (On Professional R1), when connecting to the same camera, also starts the export fine, but get stuck at 0 and the LastErrorString returns the previously stated error message.

Do anyone has any idea why this is happening? Thanks!

My first question would be if the XProtect Professional works as expected, so please try out; can you export in MKV format using the Smart Client? (Do you have recorded footage etc.?)

Also. If you run the ExportSample unmodified do you see the same error?

Hey Bo,

Your answer pointed me in the right direction. The ExportSample worked fine, so I figured it had something to do with my code. While inspecting the ExportSample, I found out the following code was needed for our application to be working.

audioSources = _item.GetRelated(); // Get the defined related Microphones and Speakers for the selected camera

if (EnvironmentManager.Instance.MasterSite.ServerId.ServerType == ServerId.EnterpriseServerType)

{

//Enterprise does not record speaker sound

foreach (Item item in audioSources.ToList())

{

if (item.FQID.Kind != Kind.Microphone)

{

audioSources.Remove(item);

}

}

}

It seemed like a Speaker item kind was in the audio sources and was causing this error. Upon removing the speaker kind item from the audio sources, everything seems to be working fine. Thanks!