title: HTML5 VIDEO tag how to restrict user for playing video only for 30 seconds
body: <p>I want user to play video only for few seconds </p>
  
  <p>How can I record the seconds that user is playing the video</p>
  
  <p>For Example </p>
  
  <p>If a video was of 10 mints and i want to restrict the user to play only for 90 seconds where he can play any 90 seconds among the total video mints </p>
  
  <p>How can this be possible using HTML5 video tag </p>
  
  <p>Code</p>
  
  <p><code>&lt;video width="320" id="myVid" height="240" controls&gt;
    &lt;source src="myVidClip.mp4" type="video/mp4"&gt;
  &lt;/video&gt;</code></p>