PauseMovie locks the program

Just starting out? Need help? Post your questions and find answers here.
k3pto
User
User
Posts: 87
Joined: Sat Jan 17, 2015 5:24 pm

PauseMovie locks the program

Post by k3pto »

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.
BarryG
Addict
Addict
Posts: 4178
Joined: Thu Apr 18, 2019 8:17 am

Re: PauseMovie locks the program

Post by BarryG »

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.
Last edited by BarryG on Fri Aug 30, 2024 5:52 am, edited 1 time in total.
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PauseMovie locks the program

Post by jacdelad »

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
Post Reply