Movies in fullsreen

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 merendo.

I don´t want to create a window before I can watch a movie. I´m going to code a little game, and want to play the intro-avi in fullscreen. How to do this without opening a window??? Thx, merendo

We always need to hear both sides of the story (by Phil Collins)
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.

You could use MCI commands to play your video without having to create a window. (I find MPEG-I works better than AVI and you don't need any special codec's on the endusers system)


*Result = GlobalAlloc_(#GMEM_FIXED, 256)
If MciSendString_("open vid.avi alias videoclip",*result,256,0)=0
MciSendString_("play videoclip fullscreen wait",*result,256,0)
MciSendString_("close videoclip",*result,256,0)
EndIf


vid.avi is the name of the video file in the same folder as your APP.

Edited by - paul on 23 March 2002 19:23:08
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.


Use ScreenID() instead of WindowID() on your screen..

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 merendo.

Paul & Fred: Both thank you for your help. I´ll will check if your sollutions work. By merendo

We always need to hear both sides of the story (by Phil Collins)
Post Reply