MIPSDK's sample app "VideoViewer2WayAudio" may not play live audio

Hello.

Please confirm the following.

In the sample application “VideoViewer2WayAudio” of MIP SDK, if you connect to E-Code XProtect, switch to Live mode without playing, the live sound does not sound once in twice.

Procedure

Connect to E code XProtect and select a camera with sound

->Live video and audio output (normal)

->Switch to playback and stop both video and audio (no playback operation)

->Switching to live, the video becomes live, but the live sound does not work (abnormal)

->Switch to playback and stop both video and audio (no playback operation)

->Switch to live, now live video and audio output (normal)

:

repetition of the above

*When you switch to playback mode, if you switch to live after performing the playback operation, the live sound is always played.

Regards,

Terajima@JKPI​

We tried to reproduce the issue using the instructions that you had provided, but no success. We used 2019 R2 SDK sample for the tests.

We assume if your client PC (running the sample) is not powerful enough. Have you tried the sample from other machines? Maybe you might want to try it out from other machines which can be powerful enough. If you see the same issue from all the clients PCs, then please let us know.

Thanks for the reply.

The symptoms are reproduced in the following environment.

CPU: Core i9-9900K, Memory: 16GB, OS: Windows10 Pro 21H2

The environment in which symptoms are reproduced can be made available via TeamViewer.

Is it possible for you to check it?

The following is a summary of the reproduction procedure and symptoms. (3 Patterns)

I have marked the areas corresponding to the symptoms of the issues with <##########>.

These are procedures to reproduce the symptoms in the sample program we are using.

We can show you the execution environment via TeamViewer as described above.

(We can also give you the source code)

----------------------------------------

[1] Only C-code servers have periodic audio interruptions

Reproduction procedure

  1. Start the application and press [Server Connect] → Connect to 172.16.2.8 and 172.16.2.10

  2. Press [Select 1] to select [XPC VN-H68] of [DESKTOP-O7RU345](=172.16.2.10).

  3. Press [Connect 1] → Sound mixed with noise sounds

  4. Press [Mode: Live] to switch to playback mode and press [Play] to play

  5. If you leave it in this state for about 3 minutes, the symptom that the sound is periodically interrupted will be reproduced. <##########>

  6. When debugging is executed, the following log is output when the sound is interrupted.

MIP: Debug: LoginServerbase ():13:26: New token posted [TOKEN#31A82716-82FC-4277-ACC7-DE1FC96BC63A#127.0.0.1:80#] – Server: 172.16.2.8

If you check the debug run log, you will see more and more logs (UpdatePlaybackState) during playback control. <##########>

Normally, the following message is displayed once per play operation.

UpdatePlaybackState

After periodic audio interruptinos occur, it appears twice, as shown below. (The number seems to increase to 3 or 4 times.)

UpdatePlaybackState

UpdatePlaybackState

[2] Only E-code server may not sound when switching from playback to live

Reproduction procedure

  1. Start the application and press [Server Connect] → Connect to 172.16.2.8 and 172.16.2.10

  2. Press [Select 1] to select [X81 U78…] of [172.16.2.8].

  3. Press [Connect 1] → Play music

  4. Press [Select 2] to select [XPC VN-H68…] of [DESKTOP-O7RU345](=172.16.2.10).

  5. Press [Connect 2] → Noise-mixed sound is heard and two sounds are heard at the same time.

  6. Press [Mode: Live] to switch to playback mode and the sound stops.

  7. Press [Mode: Playback] to switch to Live mode.

->[X81 U78…] of [172.16.2.8] does not sound and only [XPC VN-H68…] of [DESKTOP-O7RU345](=172.16.2.10) sounds with noise. <##########>

  1. Press [Mode: Live] to switch to playback mode stops the audio.

  2. Press [Mode: Playback] to switch to live mode → Both sounds will sound.

  3. When you switch from Play to Live, repeat 6) to 9). <##########>

[3] When connected in playback mode, live sound may sound (new issue).

Reproduction procedure

  1. Start the application and press [Server Connect] → Connect to 172.16.2.8 and 172.16.2.10

  2. Press [Select 1] to select [X81 U78…] of [172.16.2.8].

  3. Press [Connect 1] → Play music

  4. Press [Select 2] to select [XPC VN-H68…] of [DESKTOP-O7RU345](=172.16.2.10).

  5. Press [Connect 2] → Noise-mixed sound is heard and two sounds are heard at the same time.

  6. Press [Disconnect 1] and press [Disconnect 2] → Audio stops

  7. Press [Mode: Live] to switch to playback mode (no audio change)

  8. Press [Connect1] → Live music is played even in playback mode. <##########>

  9. Press [Connect2] → Live noise-mixed sound is heard even in playback mode, and two live sounds are heard at the same time. <##########>

  10. Then press [Play] and [Stop] to stop the sound.

If you leave it in this state for about 3 minutes, only the live sound of [XPC VN-H68…] of [Connect2] starts automatically. <##########>

We think the timing of this symptom is the same as [1], “Timing of the symptom of periodic audio interruption”.

(The symptom of [3] is not “audio interruption” but “live sound starts to sound while stopped”.)

Firstly, please see our Product life Cycle (PLC) - https://www.milestonesys.com/support/tools-and-references/product-lifecycle/

According to PLC, it is hard to support this E-Code case. Milestone Development shall not deliver a hotfix for you for the case because E-code products are already “Limited availability”. “Limited availability” should deliver Operation-critical hotfixes, but we don’t think this is the case: that is what we concluded.

Secondly, we have tried to reproduce the issue in our lab even though this is not Operation-critical, but we have not been able to reproduce it. This is extremely hard for us to continue further investigations. If we cannot reproduce it, any Teamviewer sessions don’t help for generating effective solutions.

(FYI: if you want to have a Teamviewer session, please create a case in MyMilestone)

However, it is still possible to create a case if you have the same issue on C-code.

When you create a new case, please make sure to clarify server version and edition in the new case. It means do not mix up many kinds of servers in one single question, fx: you wrote the issue that occurred in E-code in the first question - we had not at all talked about C-code. But then you suddenly said C-code in the second post. This is so bad because talking about something else just made us confused. In conclusion, we failed to understand what you wanted to say.

We have tried our best with a limited resource but if you combine one thing to another all the time, simply it is impossible to follow up. Please keep in mind: one thing at a time in a constructive way.

We determined that the symptoms of the three patterns were related to each other because they were all audio-related and similar.

We thought it would be useful for the analysis in your company and we reported the specific symptoms, but I apologize if we confused you.

We consider the severity of the issue to be an operation-critical problem in that the audio does not playback correctly.

We originally registered to “MyCases” (MSC1075716) for this issue, but we submitted it here because we were suggested to submit it to “Developer Forum”.

I will register to MyCases again.

At that time, I will attach the test code for this issue, so please debug it.

Thank you for your support.

I have just read the case MSC1075716, and the last case comment from the support was - “the product XProtect Corporate 2017 R2 is terminated product and Milestone Technical Support is no more available.

So, I assume that it can not be possible for you to get further supports with the terminated version even though you would create a new case (maybe you will get the same answer as above). One constructive option would be upgrade, so please consult with your local Milestone sales for product upgrade as the support suggested.