Forum Moderators: open

Message Too Old, No Replies

Script for MS Media player - streaming video - on Mozilla Firefox

         

Shaggy

4:50 pm on Aug 27, 2007 (gmt 0)

10+ Year Member



I have this script that works well on MS Explorer. I am trying to get it to work with Fire Fox without success.
Can anyone help me with the changes that are necessay for the script to work on Firefox?
Here is the Script:

<!-- This code embeds the Player object in itnvisible mode. -->

<!-- Create a button to open the content. -->
&nbsp;
<p>
<div style="float: left; width: 340;height:551px">
<object id="Player" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="440" height="320" CLASSID = "CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param NAME="controls" VALUE="ImageWindow">
<param NAME="console" VALUE="_master">
<param NAME="autostart" VALUE="true">
<embed width="440" height="320" src="http://example.com/filename.1.asx"
controls="ImageWindow" console="_master" >

</embed></object>
<Form>
<INPUT Type = "button" ID = "btnPlay0" Value = "Play CHL" onClick =
"PlayASX()" style="width: 364px" class="style1"/></Form>&nbsp; </p>
<p style="width: 378px; height: 57px;">&nbsp;<span class="ref2">This video feature requires
<a class="FG10" href="http://www.microsoft.com/windows/ie/downloads/default.mspx"displang=en&qstechnology" target="_blank">Internet
Explorer 4 or above</a> and
<a class="FG10" href="http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx?displang=en&qstechnology" target="_blank">
Window Media player </a></span> </p>
<p style="width: 378px; height: 28px;">&nbsp;&nbsp; Title Words</p>

<SCRIPT Language = "JScript" src="http://example.com/Title/playsx1.js">
</script>
<a href="#"</a>
<img border="0" src="imagename.jpg" alt="title words" name="title_button" width="165" height="90" onclick="PlayASX()" onMouseOver="Title_button.src='Titleon.jpg';" onMouseOut="Title_button.src='imagename.jpg';"></a>


<span class="ref2"><br />
</span><p>&nbsp;&nbsp; </p>
function PlayASX()
{
if(parseInt(Player.versionInfo) >= 11)
{
// Open the full-mode Player to show HTMLView.
Player.openPlayer("http://example.com/filename3.asx");
}
else
{
// Open the .asx file in the embedded Player.
Player.uiMode = "full";
Player.height = 200;
Player.width = 200;
Player.URL = "http://example.com/filename3.asx";
}
}

</body>

</html>

[edited by: tedster at 5:44 pm (utc) on Aug. 31, 2007]
[edit reason] use generic file names [/edit]

ogletree

5:00 pm on Aug 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I would be interested to know if this can be done. I have a site that only works in IE with the player.