How to use remote retrieval to get audio from the camera?

Hi, now i test a hikvision camera(driver is HikGeneric) with remote retrieval function. But i found the different phenomenon of smart client and mip sdk.

In smart client, when i use remote retrieval, the audio data and video data are both get by milestone service. But when i use mip sdk, only video data will be get. So i want to know, how can i get audio data from the camera by mip sdk?

Thanks.

The sample (Remote Retrieval Task - https://doc.developer.milestonesys.com/html/index.html?base=samples/remoteretrievaltask.html&tree=tree_2.html ) will only work with camera but can be easily modified to work with microphone.

Try to change line 130 - form.KindFilter = Kind.Camera; -

The ideal is if you for a camera find the related microphone and make two retrieval tasks, one for the video (camera) and one for the audio (microphone).

Thanks for your reply.

But I have modify this line(form.KindFilter = Kind.Microphone;), and get an exception(Cannot retrieve remote recordings from the device). And I capture http request by wireshark, but find no audio request from milestone service to camera. Even though, I made two retrieval tasks as you say, audio task still not work. The camera has already releated to the microphone.

Can you give me some suggestions?

We will reproduce it when we find a camera which has retrieve audio. Let me get back to you later.

We tried to reproduce your symptom but no success so far, RemoteRetrievalTaskSample works fine both retrieving image and audio. Please see what we did and please test this.

We run the sample twice for getting both image and audio.

For the first run, this is for image -

private void button1_Click(object sender, EventArgs e)
 
{
       ItemPickerForm form = new ItemPickerForm();
       form.KindFilter = Kind.Camera; // retrieve image

Second, this is for audio -

private void button1_Click(object sender, EventArgs e)
{
       ItemPickerForm form = new ItemPickerForm();
       form.KindFilter = Kind.Microphone;   // retrieve audio

We set the same time and date for retrieving image and audio when we ran the sample.

If you would be able to find differences between our code and yours, can you please describe it? Also, please verify that you use the newest MIP SDK (that is currently 2020 R2).

​Hi, thanks. But i find that if device added by Onvif driver to Recording server, it works fine, i can retrievl audio data from device, if the same device added by HikvisionGeneric driver, audio data still cannot be retrieval. Can you help to check again?

​By the way, MIP SDK is 2020R2, milestone sofaware is 2019R3.

​By the way, MIP SDK is 2020R2, milestone sofaware is 2019R3.

Hello,

Have you upgraded the Device Pack after installing the VMS?

The audio retrieval feature for HikVision Generic driver has been available since DP 10.8 which is newer than the version that is installed by default with 2019 R3.

Hi, it works well on 2020R2, and stilled failed on 2019R3, thanks.