[Gambas-user] Online radio with "Shell"

abbat81 abbat.81 at ...787...
Mon Dec 2 00:29:14 CET 2013


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()
  _new()
End


And it does not work. Nothing happens.
Yes, I use a form.
I use a same project where works well next way:
Exec ["mplayer", "-cache", "128",
"http://music.myradio.ua/trance_news128.mp3"] Wait 

Maybe I need to add some more component to my project?
What's wrong?

Thanks,
Peter





--
View this message in context: http://gambas.8142.n7.nabble.com/Online-radio-with-Shell-tp44487p44495.html
Sent from the gambas-user mailing list archive at Nabble.com.




More information about the User mailing list