Share your opinion
Library
-
Gambas Literature
|
GAMBAS SOFT WARES 2 - Mplayer front end
GBMEDIA, MPLAYER GAMBAS 2 FRONT-END
Here you find a mplayer front-end, a movie player for linux.
The source code of this application :
PRIVATE myprocess AS process
PUBLIC SUB _new()
END
PUBLIC SUB form_OPEN()
me.center
END
PUBLIC SUB bquit_click()
me.CLOSE
END
PUBLIC SUB bOPEN_click()
dialog.path = system.user.home
dialog.title = "select movie File"
IF dialog.OPENFile() THEN return
tpath.text = dialog.path
bplay.enabled = TRUE
END
PUBLIC SUB bplay_click()
bplay.enabled = FALSE
myprocess = exec ["mplayer", "-wid", drawingarea1.handle, "-loop", "0", conv$(tpath.text, desktop.charset, system.charset)] FOR read write
END
PUBLIC SUB bstop_click()
myprocess.kill()
drawingarea1.clear
bplay.enabled = TRUE
END
|
Thanks for your attention.
Creation date : 30/03/2012 @ 22:56
Last update : 17/02/2022 @ 00:55
Category : GAMBAS SOFT WARES 2
Page read 4322 times
Print the article
Reactions to this article
Nobody gave a comment yet. Be the first one to do it! |
| QUICK MENU
SEARCH
Where, who?
VISITS
|