Hi there! I have a embedded windows media player in my page that allows me to stream movies. I was trying to write a function that will display the movie duration at the bottom.
Heres some code to show how simple it is.
[CODE]<object classid=”clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6″ id=”WMP”>
<param name=”URL” value=”Lemonade.wmv”>
<param name=”animationatStart” value=”true”>
<param name=”transparentatStart” value=”true”>
<param name=”autoStart” value=”true”>
<param name=”showControls” value=”true”>
<embed type=”application/x-mplayer2″ name=”MediaPlayer1″
pluginspage=”http://www.microsoft.com/Windows/MediaPlayer/”
src=”Lemonade.wmv” autostart=”true” align=”middle” height=”285″
width=”320″>
</object>
i researched on the windows developer site and found a function called player.currentMedia.duration which should display the length of the wmv movie.
Can anyone give me a hint on how to have javascript grab this data and allow me to print it out in the html code?
Thank you!