Forum Moderators: not2easy

Message Too Old, No Replies

how to play embedded video in Firefox with loop?

         

rroomm

10:16 pm on May 24, 2007 (gmt 0)

10+ Year Member



Hi everybody. this is my first post on this forum.
Like many others, I need to compose right code to play video in embedded MS media player independent of IE or FF.
I got a template from MS technet website and it work nice even without a activeX plugin in FF.
But I need to play avi continuously.
There is no problem in IE. <PARAM NAME="loop" VALUE="1"> and clip is playing around but I can't to find alternative parameter for FF section.
Below is code I use :

<HTML>
<HEAD>
<TITLE>ABC</TITLE>
</HEAD>

<BODY>

<script language="JavaScript">

if ( navigator.appName == "Netscape" )
{
navigator.plug-ins.refresh();
document.write("\x3C" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class")
document.writeln(" width=5 height=5 name=appObs\x3E \x3C/applet\x3E")
}

</script>

<OBJECT ID="MediaPlayer" WIDTH=512 HEIGHT=560 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
standby="Loading components of Microsoft Windows Media Player..."
type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="my-clip.avi">
<PARAM NAME="ShowControls" VALUE="1">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowStatusBar" VALUE="1">
<PARAM NAME="AutoSize" VALUE="1">
<PARAM NAME="loop" VALUE="1">

<!-- params for Netscape -->
<Embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx/"
filename="my-clip.avi"
src="my-clip.avi"
Name=MediaPlayer
ShowControls=1
ShowDisplay=0
ShowStatusBar=1
width=512
height=580>
</embed>
</OBJECT>

</BODY>

</HTML>

short javascript in the beginning is used for check media player plug-in in Netscape is present and actual. (by M$)

Has any idea how to force rewind clip in FF?
I tried to install ActiveX plug-in for FF and it solved this problem, but I don't accept this way.

shigamoto

10:26 am on Jun 1, 2007 (gmt 0)

10+ Year Member



Try this one instead:
<param name="loop" value="true">

It might work.