Page 1 of 1

Play two videos

Posted: Wed Jun 03, 2020 4:21 pm
by Trion
Hi all, if i run this code only the second window will play the video?

Code: Select all

InitMovie()

LoadMovie(0, "test.wmv")
LoadMovie(1, "test.wmv")
  
OpenWindow(0, 100, 150, MovieWidth(0), MovieHeight(0), "PureBasic - Movie")
PlayMovie(0, WindowID(0))
      
OpenWindow(1, 100, 450, MovieWidth(1), MovieHeight(1), "PureBasic - Movie")
PlayMovie(1, WindowID(1))
      
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
// Edit: Code-Tags added (Kiffi)

Re: Play two videos

Posted: Wed Jun 03, 2020 7:16 pm
by infratec
Hm...

after searching for an example:

https://file-examples.com/wp-content/up ... _1_2MB.wmv

I started a test and yes, only on window 0 was a playing movie.

But after several tries it played on both windows without a change.

Re: Play two videos

Posted: Sat Jun 06, 2020 11:45 pm
by Trion
Thanks for checking

If I only play a video, I don't see any video and I only hear the sound.

Code: Select all

InitMovie()

LoadMovie(0, "test.wmv")

OpenWindow(0, 100, 150, MovieWidth(0), MovieHeight(0), "PureBasic - Movie")
PlayMovie(0, WindowID(0))
      
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
That looks to me from a bug in purebasic, i'm using windows 10 64bit

Here my test video: http://www.s3d.at/test.wmv

Re: Play two videos

Posted: Sun Jun 07, 2020 1:26 am
by BarryG
Trion wrote:Here my test video: http://www.s3d.at/test.wmv
All examples play the video for me without problem (same PC setup as yours).

What happens if you manually click and drag the window when the video is playing? Does it show then?

Re: Play two videos

Posted: Sun Jun 07, 2020 6:33 am
by Joris
BarryG wrote:All examples play the video for me without problem ...
Here too (XP 32bit) !