Hiya,
I’m using 2017R2 XPCorp via the SDK.
I have an issue with audio/video sync in a stand alone app.
I’m creating 2 image view controls via GenerateImageViewerControl() and to individual Panel controls, and 2 audio player controls via GenerateAudioPlayerControl() which are added to the Form controls - as per examples.
By not setting the PlaybackControllerFQID in the image viewers and audio play back controls ( leaving them as null ), I’m lead to believe that they will all use the ‘default playback controller’ which if is correct then audio and video should sync properly - please correct if I’m wrong here.
I then use a button on screen to begin the playback via the SendMessage function when the button is clicked. Playback of audio and video begins ok, however the audio is some 10 seconds out of sync to the video and the video frames are quite erratic and jumpy - not smooth at all.
Playing back via the smart client works OK and is very smooth with the audio in sync, which leaves me to assume its my code again, and more than likely a setup issue.
I’m initialising things in this order…
display form
[for each camera]
create image viewer, add to a panel control
initialise and connect image viewer control
get related items of the camera to find the microphone
create audio player control, add to form controls
initialise and connect audio playback control
[]
then in the button clicked event
send a play forward message at speed 1.0 to begin playback
Do you have any pointers as to where I should start to look and possibly reorganise things to resolve this issue please?
Thankyou.