1

Possible Duplicate:
Check if file exists on remote machine

If I have a URI like this

rtmp://.../mp4:20122013/..._16x9_1.mp4

is there a way in php that can verify and return if that exists or not? if not in php how can I achieve my purpose?

Community
  • 1
  • 1
DanJ
  • 11
  • 1
  • 4
  • Note that RTMP is not supported by php native functions, so you'll have to use curl (or similar). I don't know if it has changed, but in 2010, curl did not support RTMP protocol by default (see http://curl.haxx.se/mail/archive-2010-07/0020.html). – tmuguet Feb 03 '13 at 22:51
  • Curl wont work. its a different protocol and it doesn't support it. – Danilo Kobold Feb 03 '13 at 22:54

1 Answers1

0

Next time do a deeper research on google and stackoverflow.

This article explains how to check if a rtmp stream is up or down using PHP and rtmpdump.

How to check RTMP source stream is live or not?

if you prefer/need doing this with php native you can use this library

php-rtmp-client

UPDATE

in your case it will need to run :

rtmpdump -v -v -r "rtmp://flash.onthefly.nhl.com/ondemand/NHLHighlights//mp4:20122013/02/0118/2_118_nsh_sjs_1213_h_continuous_1600K_16x9_1.mp4" -W "http://nhl.cdn.neulion.net/u/videocenter/flex/images/evp.swf"

Check rtmpdump for more info.

Danilo Kobold
  • 2,562
  • 1
  • 21
  • 31