PauseMovie locks the program
Posted: Thu Aug 29, 2024 10:36 pm
My application is to show the same video on three screens. In order to ensure that the audio is synchronized to the video on all three screens, I do the following:
PlayMovie on screen 1 : Delay (100) : PauseMovie on screen 1
PlayMovie on screen 2 : Delay (100) : PauseMovie on screen 2
PlayMovie on screen 3 : Delay (100) : PauseMovie on screen 3
ResumeMovie on screen 1 : ResumeMovie on screen 2 : ResumeMovie on screen 3
On my home PC, about 8 years old, the code works fine with and without the delays. On another, much newer, PC the program will lock if there is no delay. If I am running the program as an .exe, I have to use Task Manager to kill it. I believe a shorter delay would work but I have not tried to determine the smallest delay yet.
Both PCs are running Windows 10.
PlayMovie on screen 1 : Delay (100) : PauseMovie on screen 1
PlayMovie on screen 2 : Delay (100) : PauseMovie on screen 2
PlayMovie on screen 3 : Delay (100) : PauseMovie on screen 3
ResumeMovie on screen 1 : ResumeMovie on screen 2 : ResumeMovie on screen 3
On my home PC, about 8 years old, the code works fine with and without the delays. On another, much newer, PC the program will lock if there is no delay. If I am running the program as an .exe, I have to use Task Manager to kill it. I believe a shorter delay would work but I have not tried to determine the smallest delay yet.
Both PCs are running Windows 10.