alaabataineh / php-rtmp-client

Automatically exported from code.google.com/p/php-rtmp-client
1 stars 0 forks source link

How to verify a rtmp stream before playing using php? #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am creating a website for rtmp streaming.
Users give their streaming addresses (rtmp://edge01.fms.dutchview.nl/botr) and 
select the flash player for my site. and the player will play this stream.

Now the issue is that, i want to check or validate the the rtmp url, whether is 
there any streaming on it or not, before playing.

So how can i do this by your code.
What i have to do to verify the rtmp stream.

Please Answer

Original issue reported on code.google.com by tahirj...@gmail.com on 24 Sep 2010 at 6:13

GoogleCodeExporter commented 8 years ago
Hi

Did you find any solution for this ? Please share.

Original comment by prince.b...@gmail.com on 30 Nov 2010 at 1:30

GoogleCodeExporter commented 8 years ago
You dont need to use PHP to check connection status, all streaming servers 
(FMS, WOWZA) has status informations and flash stream players checked the 
statuses before playing something. But, if you need to check connections 
status, you can use PHP socket connections, open socket fsockopen() and check 
the connection

Original comment by hrair.ta...@googlemail.com on 7 Dec 2010 at 1:06

GoogleCodeExporter commented 8 years ago
CDNs such as MaxCDN have a very limited API. It is not possible to see if a 
particular live stream channel is active or not. The only way I can see is to 
try connecting to the stream. I can do this with something like ffprobe.

fsockopen(), as far as I can tell, just shows the the server is listening on 
port 1935, not which live streams are active.

Original comment by sblandf...@gmail.com on 10 Jan 2012 at 10:06