On Mar 25, 2005, at 1:31 PM, Markus Sch�nhaber wrote:
Am Freitag, 25. M�rz 2005 18:51 schrieb Steve Butcher:
Does vlc produce any output on stdout/stderr? If it does, it may stop when the
output-buffer fills up. So you have to read Process#getOutputStream() to make
it continue.
Regards mks
I thought about this as well and originally dismissed the idea because:
1) when I run it at the command line (DOS prompt), there is no output.
2) when I run >java Launcher, it runs fine. It was not immediately apparent to me why the buffer might fill up when it was called via Tomcat v. "directly" (#1 notwithstanding).
However, I have since attempted a few things with the original code that lead me to believe that there is definitely *something* going. If I change the previous play() method to:
� � �public void play() throws Exception {
� � � � � String command = "\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --extraintf=rc --rc-host=127.0.0.1:9066 --rc-quiet \"rtsp://192.168.0.66/\" :sout=#duplicate{dst=display}";
� � � � � Process child = Runtime.getRuntime().exec( command);
int exit = child.waitFor();
� � �}
I can get the direct version (>java Launcher) to exhibit the same behavior (VLC launches but hangs with "End Program" dialog).
In any case, because you don't want your page to wait on a windowed application, you shouldn't call Process#waitFor() anyway which doesn't return until the windowed application is quit; however, it is an interesting clue.
Cheers, Steve
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
