blob: 42d750f4c542fa8036128c45d24d8ef8cedfe176 [file] [log] [blame]
<?php
if($_COOKIE["TEST"])
{
$extension = pathinfo($_COOKIE["TEST"], PATHINFO_EXTENSION);
if ($extension == 'mp4') {
header("Content-Type: video/mp4");
$fileName = "test.mp4";
} else if ($extension == 'ogv') {
header("Content-Type: video/ogg");
$fileName = "test.ogv";
} else if ($extension == 'ts') {
header("Content-Type: video/mpegts");
$fileName = "hls/test.ts";
} else
die;
header("Cache-Control: no-store");
header("Connection: close");
$fn = fopen($fileName, "r");
fpassthru($fn);
fclose($fn);
exit;
}
?>