Hi!
Help me please.
I want to make some small GUI app for online radio using Shell
Here is sample string for terminal.
*mplayer -cache 128 http://music.myradio.ua/trance_news128.mp3*
How can I use it?
Hext does not work:
*Public Sub Form_Open()
Dim a As String
Shell mplayer -cache 128
2013-12-01 21:30 keltezéssel, abbat81 írta:
Hi!
Help me please.
I want to make some small GUI app for online radio using Shell
Here is sample string for terminal.
*mplayer -cache 128 http://music.myradio.ua/trance_news128.mp3*
How can I use it?
Hext does not work:
*Public Sub
On Sun, 01 Dec 2013, abbat81 wrote:
Hi!
Help me please.
I want to make some small GUI app for online radio using Shell
Here is sample string for terminal.
*mplayer -cache 128 http://music.myradio.ua/trance_news128.mp3*
How can I use it?
Hext does not work:
*Public Sub
Hi Tobi,
Can you explain or give example please?
I don't understand how to use
Print #$hMPlayer, sCommand
I got:
Unknown identifier #$hMPlayer
How should I declare the #$hMPlayer?
Thaks
--
View this message in context:
Hi Kendek,
Thank you for your reply.
Using your code I got a music.
Also I have a information about playback in console of Gambas.
Can I send that info to any GUI control?
Thanks.
:)
--
View this message in context:
http://gambas.8142.n7.nabble.com/Online-radio-with-Shell-tp44487p44491.html
On Sun, 01 Dec 2013, abbat81 wrote:
Hi Tobi,
Can you explain or give example please?
I don't understand how to use
Print #$hMPlayer, sCommand
I got:
Unknown identifier #$hMPlayer
How should I declare the #$hMPlayer?
Thaks
You want to communicate with the mplayer process, don't
Tobi, thank you..
and excuse me please, but last question.
How to start that process?
Public Sub Button3_Click()
_new()
End
Thanks,
Peter
--
View this message in context:
http://gambas.8142.n7.nabble.com/Online-radio-with-Shell-tp44487p44493.html
Sent from the gambas-user mailing list
Tobi,
here is the my code:
Private $hMPlayer As Process
Public Sub _new()
$hMPlayer = Shell mplayer -slave -cache 128
http://music.myradio.ua/trance_news128.mp3 For Input Output As MPlayer
End
Public Sub btnStopPlayback_Click()
Print #$hMPlayer, stop
End
Public Sub Button1_Click()
Private $hMPlayer As Process
Public Sub _new()
$hMPlayer = Shell mplayer -slave -cache 128
http://music.myradio.ua/trance_news128.mp3 For Input Output As MPlayer
End
Public Sub btnStopPlayback_Click()
Print #$hMPlayer, stop
End
Public Sub Button1_Click()
_new()
End
--
Private