Quote:
Originally Posted by AndrewD
I think so, but offhand I don't know what the <OBJECT> statement looks like for real media.
for media player, it is as follows:
Code:
<OBJECT ID="MediaPlayer" WIDTH=200 HEIGHT=100
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="$STREAM_SCRIPT.php?action=stream&id=$linkid">
<EMBED TYPE="application/x-mplayer2"
src="$STREAM_SCRIPT.php?action=stream&id=$linkid"
NAME="MediaPlayer"
WIDTH=200
HEIGHT=100>
</EMBED>
</OBJECT>
|
Hi,
When I add the object code for realplayer, it displays the windowsmediaplayer alongside with the realplayer. What I want is that it first checks the file, and if it's a realplayer file, it should launch realplayer, if not, then windows.
This what I had for the jukebox created by trafix:
PHP Code:
<if condition="$canplay == 1 AND ($fext == "mpg" or $fext == "mpeg" or $fext == "wmv" or $fext == "mp3" or $fext == "swf" or $fext == "asf" or $fext == "wma" or $fext == "avi")">
<center> <object id="MediaPlayer1"
width=$viewwidth height=$viewheight
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<param name="URL" value="$playsong">
<embed type="application/x-mplayer2"
name="MediaPlayer"
width=$viewwidth
height=$viewheight
src="$playsong"
showcontrols="1">
</embed>
</object>
</center>
</if>
<if condition="$canplay == 1 AND ($fext == "rm" or $fext == "ra" or $fext == "ram" or $fext == "rt" or $fext == "rp" or $fext == "rv" or $fext == "rmvb" or $fext == "mov")">
<center> <object id="player" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=167 height=36>
<param name="CONTROLS" value="ControlPanel">
<param name="AUTOGOTOURL" value="FALSE">
<param name="CONSOLE" value="radio">
<param name="AUTOSTART" value="TRUE">
<param name="SRC" value="$playsong">
<embed name="player" type="audio/x-pn-realaudio-plugin" height=36 width=167 NOJAVA=true autostart="true" console="one" controls="ControlPanel" src="$playsong"/>
</object>
</embed>
</center>
</if>
Regards