39
Mizi - Thanks for the code!!! I implemented a variant of it and it works beautifully. . . insert following code into /include/media.php
Quote:
<!-- END mov -->
';
} elseif (eregi('ram', substr($media_url, -3)) OR eregi('rm', substr($media_url, -3)) ) {
// RAM - RM
$icon = '<a href="'.$media_url.'" target="_blank"><img src="'.XOOPS_URL.'/modules/myMedia/images/icon/mov.gif" /></a>';
$media = '
<!-- BEGIN ram/rm -->
<object
id="RVOCX"
classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH=480 HEIGHT=360>
<param name="src" value="'.$media_url.'" />
<param name="autostart" value="true" />
<param name="controls" value="imagewindow,all" />
<param name="console" value="one" />
<embed
type="audio/x-pn-realaudio-plugin"
src="'.$media_url.'"
width="480"
height="360"
autostart="true"
controls="imagewindow,all"
console="one">
</embed>
</object>
<!-- END ram/rm -->
';
I couldn't get the params for what looked like auto width and height to work sufficiently with the code mizi provided, so I just set the width and height manually. I also changed the autostart param and console param.
You can check it out here:
http://doggybloggy.com/modules/myMedia/content.php?id=6
Also, for anyone trying to tweak this for your purposes, the following official realmedia help page is excellent:
http://www.realnetworks.com/resources/samples/embedded.html