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)
Movies in fullsreen
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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

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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm