[Gambas-user] help with EXEC usage
Bill-Lancaster
bill-lancaster at ...2231...
Thu Mar 24 07:45:28 CET 2011
Sorry - I'll try again.
Its so simple, hardly worth making a project.
I'm using get_iplayer in a Gambas project to download past BBC radio
programmes.
It's working fine. To listen to the programme, this is the code -
get_iplayer --stream 13142 | mplayer -cache 3072 -, where 13142 is the
programme's index in get_iplayer.
I can start the programme but can't stop it.
Anyway, here's a small project
Bill
PUBLIC hProc AS Process
PUBLIC SUB btnPlay_Click()
hProc = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 -")
FOR WRITE
END
PUBLIC SUB btnStop_Click()
IF hProc THEN hProc.Kill
END
--
View this message in context: http://old.nabble.com/help-with-EXEC-usage-tp31208112p31226463.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list