This script below get a path to one video and stream using php, this is possible because the Range header field. If the browser doesn't allow this header the script only drop all video on response.
<?php
function streamVideo($path) {
$fileInfo = pathinfo($path);
header("Content-Disposition: inline; filename=\"{$fileInfo['basename']}\"");
if(!isset(getallheaders()['Range'])) {
echo file_get_contents($path);