Jump to content

read the response in other port??


ochi

Recommended Posts

hello, I'm not sure about how call this post, because I'm not sure about how to solve my problem.

 

I have a ssh connection, and I execute on it mplayer, it's playing a playlist that will never stop.

 

	$stream = ssh2_exec($con, 'mplayer rtsp://10.0.10.11/media.sdp') or die("no se ha ejecutado el comando");
	stream_set_blocking($stream, true); 
	$output = stream_get_contents($stream,-1);
           	fclose($stream);

 

the problem is that mplayer is sending a response all the time, so it's blocked, and if I dont read the stream, it doesnt execute mplayer.

 

could I read $stream in other port or something similar?

 

Thanks! regards

Link to comment
https://forums.phpfreaks.com/topic/195028-read-the-response-in-other-port/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.