like MetadataPlaybackViewer I open an archives_cache.xml, I correctly read the Camera and Microphone items, I use AudioPlayerControl to manage audio with the PlaybackController, but when I play video I hear no audio.
I noticed that microphone is not related with camera, is that the problem?
It works, but with a problem. If my cache.xml reference two or more audio recording i can hear only the first one.
I’ll explain better:
i have a directory with four recording, two audio and two video. When I load the cache.xml file, I can play the entire video but hear only the audio related to the first video recording.
We extended the sample to do two AudioPlayerControls and for us it worked fine.
Please see - http[s:\\download.milestonesys.com\MIPSDK\Samples\VideoFileViewerPlus2Audio.zip](file:s://download.milestonesys.com/MIPSDK/Samples/VideoFileViewerPlus2Audio.zip)
Please note that the sample leaves much work to the design and usability please use this only as a rough first sample.
When I wrote “i have a directory with four recording, two audio and two video” I meaned two audio recording of the same microphone (two table tag in microphone’s cache.xml file) and two video recording of the same camera (two table tag in camera’s cache.xml file).
In your code you used two microphone and one camera.
My uses case is different.
I send you my cache_mic.xml file with three audio table.
Table 1 has audio until 2020-02-14_12-36-35
Table 2 has audio from 2020-02-14_12-36-35 to 2020-02-14_13-36-45
Table 3 has audio from 2020-02-14_13-36-45 to 2020-02-14_14-36-55
When I load this file I hear audio until 2020-02-14_12-36-35.
If I switch the first two table in xml file I hear audio only from 2020-02-14_12-36-35 to 2020-02-14_13-36-45.
I find that if you open a second “bank” of the same device you replace (not append) the loaded configuration in MIP and I observe this for both camera and microphone.
Do you have it working for cameras but not for microphones?
Could you please describe if the data is two separate exports or how you have two sets of data?
When I understand the scenario better I would like to do a deeper investigation.
I might have misunderstood something but if you have three tables like the cache.xml you have indicate you should be able to open them all in one go by using the parent folder and the archives_cache.xml there instead.
Please note that now I am guessing as I am still unsure what it is you have as a starting point, please describe the data and the folder structure you have..
Please not that you should never open the live databases in this way while the the recording server is using them. If the Recording Server service is turned off you can do so.
attached, you will find the zip of the xml files of the respective archives.
How you can see, i have some recording audio in one bank and some recording video in another bank. Each bank have only one file cache.xml to retrive the contents.
With this folders configuration i can hear only the first audio recording, but i can see the whole video.
If I move one “table” in the chache.xml file before the others, I will hear only that, as if the SDK only loaded the first “table” of the file and discarded the rest.
As example i send you the file cache_audio2.xml where i moved a “table” to the top. So with the cache_audio.xml i hear the audio from the begin to 10:03:42 if i use the cache_audio2.xml i hear the audio from the 10:03:43 to 10:20:05.
NB
I don’t use online database, i have the file offiline on my HDD not on Milestone recorder or Milestone archive.
The files in the zip archive was renamed to put them together.
When i move the “table” inside the cache.xml i close and restart the application.
Sorry, no news. It seems my first investigation was never completed and no conclusions were reached, I am sorry for the wait this has caused.
I have now reproduced and witnessed the issue myself. I will report the issue, including my reproduction to Milestone Development for a deeper investigation