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.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to