1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
set_time_limit(0);
// Fonction qui récupère selon le range demandé
$content = Nasring::getHtml($source, false, false, false, false, false, $start.'-'.$end);
header('Content-Type:video/mp4');
header("Cache-Control: max-age=2592000");
header("Expires: ".gmdate('D, d M Y H:i:s', time()+2592000) . ' GMT');
header("Connection: Keep-Alive");
header('HTTP/1.1 206 Partial Content');
header("Accept-Ranges: bytes");
header('Content-Range: bytes '.$start.'-'.$end.'/'.$cl);
$length = $end - $start + 1;
header('Content-Length: '.$length);
echo $content; |
Partager