The end of a clip? What next?
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
The end of a clip? What next?

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web
Author Message
Jeffrey Johnson
Guest





Posted: Thu Jul 01, 2004 7:10 pm    Post subject: The end of a clip? What next? Reply with quote

I want a page to play a clip, then when the clip has competed I want it to
automatically load another page. Or in the case of my page, reload
itself....

How would I do this? The main page for the site is http://www.mycaboodle.com
please assist me with the proper code to reload the page upon completion of
the video.

Thank you
JJ

Back to top
Hutch
Guest





Posted: Thu Jul 08, 2004 12:34 pm    Post subject: Re: The end of a clip? What next? Reply with quote

Mornin JJ,

You probably need to have a piece of javascript that watches the
'playStateChange' event which is returned from the player each time its
playstate changes. For example when the media is finished the player enters
a playstate of '8' which means the media is ended and then usually '10'
which means its ready to play again.

Have a read about the playStateChange event here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/playerplaystatechange.asp
They provide a very simple example which you should be able to adapt to your
needs fairy quickly.
Remember that the script needs to monitor the player object by name so you
need to give your object/embed an id. (in microsofts example they call the
object 'Player' but it might be different in your case)

Its very usefull to know the different PlayStates of course, so they are
available here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/playerplaystate.asp

Hope that helps a bit.. it should get you rolling at least.


"Jeffrey Johnson" <jjohnson@cyberce.net> wrote in message
news:eUH9%2313XEHA.3972@TK2MSFTNGP12.phx.gbl...
Quote:
I want a page to play a clip, then when the clip has competed I want it to
automatically load another page. Or in the case of my page, reload
itself....

How would I do this? The main page for the site is
http://www.mycaboodle.com
please assist me with the proper code to reload the page upon completion
of
the video.

Thank you
JJ
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB