Hutch
Guest
|
Posted:
Thu Jul 08, 2004 12:34 pm Post subject:
Re: The end of a clip? What next? |
|
|
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 |
|
|