Bema Jinn
Thu 9th Jun '05, 7:16am
function DisplayVideo($f,$ext) {
global $prefs,$theme;
DisplayHeader();
DisplayDirectoryNavigationRow($f);
$file = $prefs['files'].$f;
echo '<tr><td align=middle>';
if ($ext == 'ram' || $ext == 'rm') {
echo '<OBJECT CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
HEIGHT="400" WIDTH="600">
<PARAM NAME="SRC" VALUE="'.$file.'">
<PARAM NAME="CONTROLS" VALUE="ImageWindow">
<PARAM NAME="CONSOLE" VALUE="video0">
<PARAM NAME="nojava" VALUE="true">
<PARAN NAME="center" VALUE="true">
<embed src="'.$file.'" width="400" height="600" controls="ImageWindow" nojava="true" center="true" console="Carol0"></embed>
</OBJECT>
<br>
<OBJECT CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
HEIGHT="100" WIDTH="600">
<PARAM NAME="SRC" VALUE="'.$file.'">
<PARAM NAME="CONTROLS" VALUE="all">
<PARAM NAME="CONSOLE" VALUE="video0">
<PARAM NAME="nojava" VALUE="true">
<embed src="'.$file.'" width="600" height="100" nojava="true" controls="All" console="Carol0"></embed>
</OBJECT>';
} else // Handle with Winblows Media Player
echo '<OBJECT ID="MediaPlayer3" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<PARAM NAME="URL" VALUE="'.$file.'">
<PARAM NAME="ClickToPlay" VALUE="TRUE">
<PARAM NAME="AutoStart" VALUE="TRUE">
<PARAM NAME="ShowControls" VALUE="TRUE">
<PARAM NAME="ShowDisplay" VALUE="TRUE">
<PARAM NAME="ShowStatusBar" VALUE="TRUE">
<embed TYPE="application/x-mplayer2"
pluginspage="http://www.microsoft.com/windows/windowsmedia/download/"
filename="'.$file.'"
SRC="'.$file.'"
Name=MediaPlayer3
ClickToPlay=1
AutoStart=1
ShowControls=1
ShowDisplay=1
ShowStatusBar=1
controls="PlayButton"
width=320
height=290>
</embed>
</OBJECT>';
echo '</td></tr>';
This is from a script i downloaded, and can i hell as like get it working in firefox.
I tried searhing the net, and the only answers i can get is something about axtiveX and firefox not supporting it, so users have to manually install it.
but other sites with embeded vids and WMP work perfectly fine.
Can anyone help remedy this?
EDIT: it also works perfectly fine if i put in the full vid url, instead of the ".$file."
global $prefs,$theme;
DisplayHeader();
DisplayDirectoryNavigationRow($f);
$file = $prefs['files'].$f;
echo '<tr><td align=middle>';
if ($ext == 'ram' || $ext == 'rm') {
echo '<OBJECT CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
HEIGHT="400" WIDTH="600">
<PARAM NAME="SRC" VALUE="'.$file.'">
<PARAM NAME="CONTROLS" VALUE="ImageWindow">
<PARAM NAME="CONSOLE" VALUE="video0">
<PARAM NAME="nojava" VALUE="true">
<PARAN NAME="center" VALUE="true">
<embed src="'.$file.'" width="400" height="600" controls="ImageWindow" nojava="true" center="true" console="Carol0"></embed>
</OBJECT>
<br>
<OBJECT CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
HEIGHT="100" WIDTH="600">
<PARAM NAME="SRC" VALUE="'.$file.'">
<PARAM NAME="CONTROLS" VALUE="all">
<PARAM NAME="CONSOLE" VALUE="video0">
<PARAM NAME="nojava" VALUE="true">
<embed src="'.$file.'" width="600" height="100" nojava="true" controls="All" console="Carol0"></embed>
</OBJECT>';
} else // Handle with Winblows Media Player
echo '<OBJECT ID="MediaPlayer3" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<PARAM NAME="URL" VALUE="'.$file.'">
<PARAM NAME="ClickToPlay" VALUE="TRUE">
<PARAM NAME="AutoStart" VALUE="TRUE">
<PARAM NAME="ShowControls" VALUE="TRUE">
<PARAM NAME="ShowDisplay" VALUE="TRUE">
<PARAM NAME="ShowStatusBar" VALUE="TRUE">
<embed TYPE="application/x-mplayer2"
pluginspage="http://www.microsoft.com/windows/windowsmedia/download/"
filename="'.$file.'"
SRC="'.$file.'"
Name=MediaPlayer3
ClickToPlay=1
AutoStart=1
ShowControls=1
ShowDisplay=1
ShowStatusBar=1
controls="PlayButton"
width=320
height=290>
</embed>
</OBJECT>';
echo '</td></tr>';
This is from a script i downloaded, and can i hell as like get it working in firefox.
I tried searhing the net, and the only answers i can get is something about axtiveX and firefox not supporting it, so users have to manually install it.
but other sites with embeded vids and WMP work perfectly fine.
Can anyone help remedy this?
EDIT: it also works perfectly fine if i put in the full vid url, instead of the ".$file."