title: How to stream video on homeserver using php?
body: <p>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:</p>
  <pre><code>?&gt;
  &lt;div class=&quot;row&quot;&gt;
   &lt;div class=&quot;col-lg-12 col-md-12 mb-4&quot;&gt;
     &lt;video src=&quot;&lt;?=$src?&gt;&quot; autoplay controls&gt;&lt;/video&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  &lt;?php
  </code></pre>
  <p>$src is the correct path of the mp4 file.</p>
  <pre><code>$src = &quot;F:/Avatar - The Last Airbender/s01/e01.mp4&quot;
  </code></pre>
  <p>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.
  <a href="https://i.stack.imgur.com/OUbhg.png" rel="nofollow noreferrer">Current result</a>
  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?</p>