playmovie fullscreen linux error help me! plese!
Posted: Mon Jun 15, 2009 4:45 pm
help me!
in linux ubuntu 8.04 and in ubuntu 9.04
quit debugged unexpectedly
work ok without PlayMovie(0, ScreenID()) ( no show video ) how to show video
help play movie in screen mode in linux
work ok in linux in windows mode
without Until WaitWindowEvent() = #PB_Event_CloseWindow:
in windows xp all work ok! help me! for linux
in linux why we have these errors may depend on what?
how to fix them please help me!
in linux ubuntu 8.04 and in ubuntu 9.04
quit debugged unexpectedly
Code: Select all
#Screenwidth = 800
#Screenheight = 600
If InitSprite() And InitMovie() And InitKeyboard() And OpenScreen(#Screenwidth,#Screenheight,16,"MovieScreen")
Else
MessageRequester("Error", "ppp", 0)
End
EndIf
;-PlayAvi
playavi :
FlipBuffers()
ClearScreen(RGB(0, 0, 0))
FlipBuffers()
If LoadMovie(0, "sfexp.avi")
;ResizeMovie(0,0,0,#Screenwidth,#Screenheight)
ClearScreen(RGB(0, 0, 0))
Delay(1000)
PlayMovie(0, ScreenID())
Repeat
ExamineKeyboard()
Delay(1)
Until KeyboardPushed(#PB_Key_Escape)
FreeMovie(0)
ClearScreen(RGB(0, 0, 0))
Else
MessageRequester("Error", "Sprite system can't be initialized", 0)
EndIf
help play movie in screen mode in linux
Code: Select all
#Screenwidth = 800
#Screenheight = 600
If InitSprite() And InitMovie() And InitKeyboard() And OpenScreen(#Screenwidth,#Screenheight,16,"MovieScreen")
Else
MessageRequester("Error", "ppp", 0)
End
EndIf
;-PlayAvi
playavi :
FlipBuffers()
ClearScreen(RGB(0, 0, 0))
FlipBuffers()
If LoadMovie(0, "sfexp.avi")
;ResizeMovie(0,0,0,#Screenwidth,#Screenheight)
ClearScreen(RGB(0, 0, 0))
Delay(1000)
;PlayMovie(0, ScreenID())
Repeat
ExamineKeyboard()
Delay(1)
Until KeyboardPushed(#PB_Key_Escape)
FreeMovie(0)
ClearScreen(RGB(0, 0, 0))
Else
MessageRequester("Error", "Sprite system can't be initialized", 0)
EndIf
work ok in linux in windows mode
without Until WaitWindowEvent() = #PB_Event_CloseWindow:
Code: Select all
;
; ------------------------------------------------------------
;
; PureBasic - Movie example file
;
; (c) 2001 - Fantaisie Software
;
; ------------------------------------------------------------
;
If InitMovie() = 0
MessageRequester("Error", "Can't initialize movie playback !", 0)
End
EndIf
MovieName$ = OpenFileRequester("Choose the movie to play", "", "Movie/Audio files|*.avi;*.mpg;*.asf;*.mp3;*.wav|All Files|*.*", 0)
If MovieName$
If LoadMovie(0, MovieName$)
OpenWindow(0, 100, 150, MovieWidth(0), MovieHeight(0), "PureBasic - Movie")
PlayMovie(0, WindowID(0))
Repeat
; Until WaitWindowEvent() = #PB_Event_CloseWindow
forever
Else
MessageRequester("Error", "Can't load the movie...", 0)
EndIf
EndIf
in linux why we have these errors may depend on what?
how to fix them please help me!