Play a video in a second window

Just starting out? Need help? Post your questions and find answers here.
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Play a video in a second window

Post by jak64 »

Good morning,

I have a first main window Window.

To play a video, I open a second smaller window Window.

When I start playing my video, it is displayed in the main window even if I put the name of my video window in the PlayMovie instruction...

I do not understand why !!!
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: Play a video in a second window

Post by Marc56us »

Without an example, it is difficult to help.
The most common mistake is to use the window number but forget WindowsID()

PlayMovie(0, WindowID(0))
User avatar
jacdelad
Addict
Addict
Posts: 1431
Joined: Wed Feb 03, 2021 12:46 pm
Location: Planet Riesa
Contact:

Re: Play a video in a second window

Post by jacdelad »

Without code it's just shooting into the air: Are you using the WINDOWID of the window or the handle?

Code: Select all

PlayMovie(#MyMovie,WindowID(#MyWindow))
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Re: Play a video in a second window

Post by jak64 »

Ok, I was not putting the right syntax, I was not putting WindowID()

thanks to Marc56us and jacdelad
Post Reply