Re: control time / length of video

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Neil,

Maybe you can help me with my problem.
I have an embeded windows media player on my webpage to play a
playlist.

As expected everything works great in IE but I can't get the Player nor
the custom controls to work in FireFox. Can you help Please.

---For the embeded player---

<OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=40
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<EMBED TYPE="application/x-mplayer2"
NAME="MediaPlayer"
WIDTH=320
HEIGHT=40>
</EMBED>

<% IF instr(Request.ServerVariables("HTTP_USER_AGENT"), "MSIE") then
Response.Write("Internet Explorer") %>


<SCRIPT language="JScript">
<!--
{
MediaPlayer.URL = "playlist.asx";

}
function next ()
{
MediaPlayer.controls.next();

}
function previous ()
{
MediaPlayer.controls.previous();


}
-->
</script>
<FORM>
<INPUT TYPE=BUTTON
NAME="ForwardButton"
VALUE="Next"
ONCLICK="next()">
<INPUT TYPE=BUTTON
NAME="ReverseButton"
VALUE="Previous"
ONCLICK="previous()">
</FORM>



<%else if instr(Request.ServerVariables("HTTP_USER_AGENT"), "Firefox")
then
Response.Write("Firefox<br>") %>

<SCRIPT language="JScript">
<!--
{
MediaPlayer.URL = "playlist.asx";

}
function next ()
{
MediaPlayer.next();

}
function previous ()
{
MediaPlayer.previous();


}
-->
</script>

<FORM>
<INPUT TYPE=BUTTON
NAME="ForwardButton"
VALUE="Next"
ONCLICK="next()">
<INPUT TYPE=BUTTON
NAME="ReverseButton"
VALUE="Previous"
ONCLICK="previous()">
</FORM>

<%
end if
end if %>

As you can see, the page should launch the playlis.asx to start playing
automatically but that does not work in FF. I've tried to code the
page to detect what type of browser I am using which works but not the
jscript for the controls in FF.

If you can please help me.

.


Quantcast