使用PHP在html中嵌入视频MP4

I'm trying to embed a video that I have saved on my site using php. Im using the following code, but I can't seem to get it to work. How would this be done?:

HTML:

<video controls> 
  <source src="http://mysite2323.com/action/file/download?file_guid=884498" type=video/mp4>
</video>

PHP:

$mime = $file->getMimeType();
if (!$mime) {
    $mime = "application/octet-stream";
}

$filename = $file->originalfilename;

// fix for IE https issue
header("Pragma: public");

header("Content-type: $mime");
header("Content-Disposition: inline; filename=\"$filename\"");
header("Content-Length: {$file->getSize()}");

while (ob_get_level()) {
    ob_end_clean();
}
flush();
readfile($file->getFilenameOnFilestore());
exit;