can't make player play video served by php's readfile
+1
A:
At a guess, you probably need to serve a proper mime type. Such as video/x-flv
, if that's what you're serving.
fenomas
2010-04-29 05:29:15
A:
usually flash player doesn't care for HTTP headers at all. It usually determines mime type by file header, at least for images/swfs. what happens if you play the video directly?
also, it may be possible, that your script generates errors, that polutte the php's output.
common scenario: one of your PHP files has leading whitespaces or a BOM, that cause the PHP interpreter to simply print them (as if it were HTML). when attempting to set headers afterward, this causes a PHP error, since there has already been output.
greetz
back2dos
back2dos
2010-04-29 10:50:41