title: How to stream video in Laravel
body: <p>I am trying to stream the video in the blade file. Normally video is loading but I am not able to go to and fro.</p>
  
  <p>Here is the link which I followed: 
  <a href="https://codesamplez.com/programming/php-html5-video-streaming-tutorial" rel="noreferrer">https://codesamplez.com/programming/php-html5-video-streaming-tutorial</a></p>
  
  <p>I have added the class things in my <code>App/VideoStream.php</code> class and in the blade</p>
  
  <pre><code>&lt;?php
  $video_path = 'my_video_ath';
  
  $tmp = new \App\VideoStream($video_path);
  $tmp-&gt;start();
  
  ?&gt;
  
  
  &lt;video controls preload="auto" src="{{ $tmp }}" width="100%"&gt;&lt;/video&gt;'
  </code></pre>
  
  <p>Whats issue in this, please help me out.</p>