0
我有一个应该脚本以“流”一个FLV(为的Flowplayer):如何使用PHP“流”FLV?
header('Content-Type: video/flv');
$realpath = base64_decode($_GET['file']);
$chunksize = 1 * 1024 * 1024;
$handle = fopen($realpath, 'rb');
$buffer = '';
while(!feof($handle))
{
set_time_limit(600);
$buffer = fread($handle, $chunksize);
echo $buffer;
ob_flush();
flush();
}
fclose($handle);
exit;
它的工作的小影片,但对于更大的人它需要刷新与播放器的网页,以便他们玩......
你为什么想PHP来流呢?它有很多开销。 – 2011-06-15 19:40:22
你必须使用PHP的原因? – ngen 2011-06-15 19:41:26