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.
PauseMovie locks the program
Re: PauseMovie locks the program
You're doing something wrong in your code, but as you didn't post it, we can't help.
[Edit] It's also possible that the video codecs on both PCs are different, and one is causing the problem.
[Edit] It's also possible that the video codecs on both PCs are different, and one is causing the problem.
Last edited by BarryG on Fri Aug 30, 2024 5:52 am, edited 1 time in total.
Re: PauseMovie locks the program
And again: Don't post in bugs until it's verified. A mod will move your post in that case...
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD