title: Html5 video set maximum playing duration
body: <p>I would like to setup the maximum playback duration of a html5 video player on my website.</p>
  
  <p>There is a JUST preview zone on my website, and It would be very useful to me to load tha same full video as in the member area, which is about 10 minutes long, but in the preview zone  I want to playback just the first 15 seconds from this video.</p>
  
  <p>I have tried using duration = "15" but no use, an I havent got a clue</p>
  
  <p>I am using the following code</p>
  
  <pre><code>        &lt;video id="example_video_1" class="video-js vjs-default-skin vjs-big-play-centered"
              controls preload="auto" width="300" height="170" duration="10"
               poster="&lt;?=$url_base?&gt;fda/videofiles/vidprev2.png"
               data-setup='{"example_option":true}'&gt;
               &lt;source src="&lt;?=$url_base?&gt;fda/videos/clip1.mp4" type='video/mp4' /&gt;
               &lt;source src="&lt;?=$url_base?&gt;fda/videos/clip1.webm" type='video/webm' /&gt;
               &lt;source src="&lt;?=$url_base?&gt;fda/videos/clip1.ogv" type='video/ogg' /&gt;
          &lt;/video&gt;
  </code></pre>
  
  <p>the video player works fine, but it plays the entire clip instead of just the beginning</p>