streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Thu Aug 07, 2008 8:21 am Post subject: Alert sounds for Manage without Quicktime Plugin |
|
|
I use Firefox all the time, and one thing that's always bothered me is the default association with playing an embedded WAV and needing to install Quicktime. I also like to use Gilles plugin Manage, but never liked that I needed Quicktime.
I made a little change to the manage_ajax.php so that if you're running Windows to watch Cacti, it will now embed Media player in both IE and FF without the need for Quicktime to be installed.
Just install the following code at the indicated places.
| Code: |
$sound = $config["url_path"] . "plugins/manage/images/themes/".$theme."/attn-noc.wav";
print "<object id=MediaPlayer1 CLASSID=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6";
print "standby=Loading Microsoft Windows® Media Player components... type=application/x-oleobject width=640 height=480>";
print "<param name=fileName value=".$sound.">";
print "<param name=animationatStart value=true>";
print "<param name=transparentatStart value=true>";
print "<param name=autoStart value=true>";
print "<param name=playcount value=0>";
print "<param name=uimode value=invisible>";
print "<param name=Volume value=-450>";
print "<embed type=application/x-mplayer2 pluginspage=http://www.microsoft.com/Windows/MediaPlayer/ src=".$sound." name=MediaPlayer1 uimode=invisible width=1 height=1 autostart=1 playcount=0 volume=-450>";
print "</object>";
|
It should work without much issues, as long as you have Media Player installed on your Windows Boxen. Make sure you comment out the lines indicated in the screen caps or else you'll have either two instances playing, or you'll be asked for the QuickTime plugin as well as having the sound play.
| Description: |
|
| Filesize: |
13.19 KB |
| Viewed: |
619 Time(s) |

|
| Description: |
|
| Filesize: |
13.37 KB |
| Viewed: |
619 Time(s) |

|
|
|