wrong parameter : ""

File not found: ""

'; return ''; } /** Generate a source entry for a given file. Returns source tag, if the image file exists, empty otherwise. */ function source($dir, $file, $mime=NULL) { $URL=pageUrl(); $path=$dir.'/'.$file; if (is_file($path)) { if (!$mime) $type=mime_content_type($path); else $type='video/'.$mime; echo ''."\n"; } else { echo "Not Found: $path for $mime"; } } /** Output only a part of a file */ function fileRange($path, $size, $mime) { $ranges = array_map('intval', // Parse the parts into integer explode('-', // The range separator // Skip the `bytes=` part of the header substr($_SERVER['HTTP_RANGE'], 6))); // If the last range param is empty, it means the EOF (End of File) if (!$ranges[1]) $ranges[1] = $size-1; // Send the appropriate headers header('HTTP/1.1 206 Partial Content'); header('Accept-Ranges: bytes'); header('Content-Length: '.($ranges[1]-$ranges[0])); // The size of the range // Send the ranges we offered header(sprintf('Content-Range: bytes %d-%d/%d', // The header format $ranges[0], // The start range $ranges[1], // The end range $size)); // Total size of the file // It's time to output the file $f = fopen($path, 'rb'); // Open the file in binary mode $chunkSize = 8192; // The size of each chunk to output // Seek to the requested start range fseek($f, $ranges[0]); // output the data while (ftell($f) < $ranges[1]) { echo fread($f, $chunkSize); @ob_flush(); flush(); } } /** Output a file */ function output($path) { $size = filesize($path); // The size of the file $mime = mime_content_type($path); ob_clean(); @ini_set('error_reporting', E_ALL & ~ E_NOTICE); @apache_setenv('no-gzip', 1); @ini_set('zlib.output_compression', 'Off'); header('Content-type: ' . $mime); if (isset($_SERVER['HTTP_RANGE'])) { fileRange($path, $size, $mime); } else { header('Content-Length: ' . $size); @readfile($path); @ob_flush(); flush(); } exit; } /** Replace file extension */ function ext($file, $newext) { return preg_replace('/\.[^.]*$/', '.'.$newext, $file); } /** Show a video player for the given video */ function player($video) { global $DIR, $CONVERT; $URL=pageUrl(); ?>


[Click to Download or copy link to VLC player]

Videofilme

Videofilme