Code: Select all
InitSprite()
InitMovie()
InitKeyboard()
cFile.s = OpenFileRequester("", "", "*.avi", 0)
hScreen = OpenScreen(640, 480, 32, "test")
LoadMovie(0, cFile.s)
ResizeMovie(0, 0, 640, 480)
PlayMovie(0,hScreen)
Repeat
Delay(10)
ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)
This will show the movie but the screen is not really fullscreen, it looke more like windowedscreen... (still used hScreen instead ScreenID() - so my source is wrong!)
Code: Select all
InitMovie()
InitSprite()
InitKeyboard()
cFile.s = OpenFileRequester("", "", "*.avi", 0)
OpenScreen(640, 480, 32, "test")
LoadMovie(0, cFile.s)
ResizeMovie(0, 0, 640,480)
PlayMovie(0,ScreenID())
Repeat
ExamineKeyboard()
FlipBuffers()
Until KeyboardPushed(#PB_Key_Escape)
Debug ScreenID()
Just tried this one.. the source isnt correct! This time i used as in DOCS mentiented the ScreenID command and tried to flipbuffer... when start program, it will open a screen, minimize, just maximize and you can see your video flickering and slow down...
i coded such a thing over 1 year ago and it worked fine (lost source by hd crash) ... so it seems to be a bug....
@Fred: I think its not correct to use PlayMovie() inside start and stopdrawing(), right!? If so, the debugger should alert this..
