Can anyone show me a working example of how to play mpeg video using PlayMovie command on a screen opened with OpenScreen function?
I thought the code below would work but I don't see the video (I can hear the sound for it so I know it's playing) Should I use flipbuffers()?
Code: Select all
InitSprite()
InitMovie()
InitKeyboard()
LoadMovie(0,"d:\temp\test.mpg")
OpenScreen(640,480,32,"screen")
ResizeMovie(0, 0, 640, 480)
PlayMovie(0,ScreenID())
Repeat
ExamineKeyboard()
Until KeyboardPushed(#PB_Key_All)
StopMovie()
FreeMovie(0)
End
chr1sb