[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

VLC streaming getting messages from vlc

pere.noel

7/11/2006 4:43:00 PM

if i do :

reponse=`/Applications/FreePlayer/new/VLC.app/Contents/MacOS/VLC
rtsp://mafreebox.freebox.fr/freeboxtv/210 &`

from a ruby script i get the reponse from the VLC app only after i've
killed the job.

howver i'd like having part of this message when VLC is playing the
movie in order to assure evrething is right...

how to get that ?

--
une bévue
1 Answer

Mat Schaffer

7/11/2006 4:57:00 PM

0


On Jul 11, 2006, at 12:45 PM, Une bévue wrote:

> if i do :
>
> reponse=`/Applications/FreePlayer/new/VLC.app/Contents/MacOS/VLC
> rtsp://mafreebox.freebox.fr/freeboxtv/210 &`
>
> from a ruby script i get the reponse from the VLC app only after i've
> killed the job.
>
> howver i'd like having part of this message when VLC is playing the
> movie in order to assure evrething is right...
>
> how to get that ?
>
> --
> une bévue
>

IO::popen should do the trick.

http://www.rubycentral.com/ref/ref_c_io....

-Mat