PlayMovie

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

Hello Fred,

Is there any way to use the PlayMovie() command to display a movie on a graphic window??
I have tried but it shuts down the graphic window and plays the movie in its own Active Movie window.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

What do you call 'Graphic Window' ? You can display movie on regular window (see MoviePlayer.pb) or on DirectX screen (passing ScreenID() instead of WindowID()).


Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

And where exactly would I find the ScreenID() command in the documentation???
:)

Thanks Fred, that did the trick !!

Another question for ya...
Is there an easy way to get rid of the Windows title bar that arrears at the top of the DirectX screen?

I tried leaving the title field blank
OpenScreen(640, 480, 16, "")
but that doesn't help, the bar still appears.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

One other question...
What is the point of specifying the movie number in:
PlayMovie(##,handle) ??

It always plays the last movie loaded, regardless of number.
Example:

LoadMovie(0,"test0.mpg")
LoadMovie(1,"test1.mpg")
LoadMovie(2,"test2.mpg")
PlayMovie(0,handle)

It will play the movie "test2.mpg" (last movie loaded)

If I use UseMovie(##) then the PlayMovie() it will play the movie specified in UseMovie()
Example:
UseMovie(1)
PlayMovie(0,handle)

It will play the movie "test1.mpg"
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.
One other question...
What is the point of specifying the movie number in:
PlayMovie(##,handle) ??

It always plays the last movie loaded, regardless of number.
Example:

LoadMovie(0,"test0.mpg")
LoadMovie(1,"test1.mpg")
LoadMovie(2,"test2.mpg")
PlayMovie(0,handle)

It will play the movie "test2.mpg" (last movie loaded)

If I use UseMovie(##) then the PlayMovie() it will play the movie specified in UseMovie()
Example:
UseMovie(1)
PlayMovie(0,handle)

It will play the movie "test1.mpg"
Hum, you probably found a bug... I will fix it !

Fred - AlphaSND
Post Reply