Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

help on redirect...

I am helping with a small site that has about a 30 second video on it,,but with different speeds of downloads of various users I need to have the page redirect when the video ends, instead of setting a time from when the page loads. Here is the code I am using at the time. How can I change this to make it redirect as soon as the video is over.

<html>
<head>
<meta http-equiv="REFRESH" content="31; URL=http://eliteflyers.net/index.php">
</head>
</html>

<BODY BGCOLOR="#000000">

<!-- begin embedded WindowsMedia file... -->
<table border='0' cellpadding='0' align="center">

<tr><td>
<OBJECT id='mediaPlayer' width="320" height="240"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="http://trebiz.net/av8r/EF_256kmodem.wmv">
<param name='animationatStart' value='true'>
<param name='transparentatStart' value='true'>
<param name='autoStart' value="true">
<param name='showControls' value="false">
<param name='loop' value="false">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
bgcolor='darkblue' showcontrols="false" showtracker='-1'
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="240"
src="http://trebiz.net/av8r/EF_256kmodem.wmv" autostart="true" designtimesp='5311' loop="false">
</EMBED>
</OBJECT>
</td></tr>
<!-- ...end embedded WindowsMedia file -->
<!-- begin link to launch external media player... -->
<tr><td align='center'>
<a href="http://eliteflyers.net/index.php">Click here when video is complete</a>
<!-- ...end link to launch external media player... -->
</td></tr>
</table>
[2700 byte] By [CorruptHawkeyez] at [2007-11-11 7:56:07]
# 1 Re: help on redirect...
That would require Windows Media Player to alert your page somehow that the video has ended, or for your page to be able to monitor the state of the Windows Media Player. I don't think that's possible. But I could be wrong.
Laszlo at 2007-11-11 22:36:57 >