I try to make a website on my homeserver, which can play videos. I use XAMPP for Windows 7.2.33. PHP snippet of function:
?>
<div class="row">
<div class="col-lg-12 col-md-12 mb-4">
<video src="<?=$src?>" autoplay controls></video>
</div>
</div>
<?php
$src is the correct path of the mp4 file.
$src = "F:/Avatar - The Last Airbender/s01/e01.mp4"
The video player appears, but does not play the file. I have tried the tag in a simple .html file, and it worked out of the xampp, but not in the xampp's htdocs dir. Current result I assume there is something with apache, but I don't know. Do you have any idea what the problem is, or how should I stream videos from php?