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?
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).
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.
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?
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.