/    Sign up×
Community /Pin to ProfileBookmark

Help with Objects in HTML

I have this:

<OBJECT CLASSID=”clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6″ ID=”WMP”>
<PARAM NAME=”Name” VALUE=”WMP1″>
<PARAM NAME=”URL” VALUE=”myurl.com”>
</OBJECT>

This will play a Windows Media file embedded in the HTML Page. Does anyone know how to redirect the page when the file has finished (ended playing)??

Thank you for your help!
-c

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@buntineDec 28.2004 — It may be possible in JavaScript. I cant think of anything off the top of my head, though. I will copy this thread to the JS forum and see if anyone over there can help you out.

Regards.
Copy linkTweet thisAlerts:
@TheBearMayDec 28.2004 — Theoretically you should be able to monitor the Player.StatusChange event (or in your example WMP.StatusChange) or periodically check the Player.status (WMP.status), and then redirect on determining the file has completed.

See: http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/playerobject.asp
×

Success!

Help @vbprog40 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...