title: How to get the playing file total time duration Media player
body: <p>I use media player control to play mp3 files in asp.net application. I want to find When the playing process gets end and the total time require to finish the file using javascript.</p>
  
  <p>Code:</p>
  
  <pre><code>  &lt;object id="mediaPlayer" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" 
                      codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" 
                      height="1" standby="Loading Microsoft Windows Media Player components..." 
                      type="application/x-oleobject" width="1"&gt;
                      &lt;param name="fileName" value="" /&gt;
                      &lt;param name="animationatStart" value="true" /&gt;
                      &lt;param name="transparentatStart" value="true" /&gt;
                      &lt;param name="autoStart" value="true" /&gt;
                      &lt;param name="showControls" value="true" /&gt;
                      &lt;param name="volume" value="100"  /&gt;
                      &lt;param name="loop" value="true"  /&gt;
                  &lt;/object&gt;
  </code></pre>
  
  <p>Geetha.</p>