title: Stop video playing when web page is closed and start it again where it can be stoped
body: <p>i need help in php website.i am create website like online videos courses.i need help in video module.if playing any video and close it after some time and again play this video then need to play it where it can be stop or closed.
  This video are getting from database not embedded video.for showing video i am using afterglow video player.</p>
  
  
  
  <pre><code>&lt;video class="afterglow" id="myvideo" height="385px" width="770px"&gt;
  &lt;source type="video/mp4" src="adminpanel/video/&lt;?php echo $results-&gt;c_video; ?&gt;"  /&gt;
  &lt;/video&gt; 
  </code></pre>
  
  <p>Is there any script to solve this problem.</p>