Link to home
Start Free TrialLog in
Avatar of matthewyea
matthewyea

asked on

Embedded Windows Media Player Time Control

Dear Experts,

Is there a way to control (or limit) play time of an mp3 song using embedded Windows Media Player on a web site?
I would like to play a demo portion of about 30 seconds instead of the whole music on a web site using a Windows Media Player, but don't want to create a separate 30 second demo file.
Is there a way to limit the playing time of the embedded Windows Media Player?

Thanks, in advance.
Avatar of aspmaestro
aspmaestro
Flag of India image

checkout this PAQ:
https://www.experts-exchange.com/questions/20691473/Embedded-Windows-Media-Player-with-Full-Control-And-Ad's.html

you can call the settimeout function in javascript with interval set to 30 secs. once the playing has started call settimeout keeping check on counter; if it reaches 30 then stop playing the file.
check this url source for getting acquainted with settimeout :
http://www.geocities.com/mangokun/programming/javascript/control_setTimeout.htm

ASKER CERTIFIED SOLUTION
Avatar of eeBlueShadow
eeBlueShadow

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of matthewyea
matthewyea

ASKER

Thanks, aspmaestro and eeBlueShadow.
I've created a script and it worked great.  Thanks again.  ^^