summaryrefslogtreecommitdiffstats
path: root/usr/local/www/javascript/scriptaculous/sound.js
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfSense.org>2009-12-23 19:10:40 -0500
committerScott Ullrich <sullrich@pfSense.org>2009-12-23 19:10:40 -0500
commit3bb547c2b391bf1e134ac9ee4ef98aca0fdbd1b6 (patch)
treeed0d77fb2d8f64f969a81914725ddf5b63e33a3d /usr/local/www/javascript/scriptaculous/sound.js
parent72d51890048043fce76c8e931298328dd8dd53a3 (diff)
downloadpfsense-3bb547c2b391bf1e134ac9ee4ef98aca0fdbd1b6.zip
pfsense-3bb547c2b391bf1e134ac9ee4ef98aca0fdbd1b6.tar.gz
Updating to 1.8.3
Diffstat (limited to 'usr/local/www/javascript/scriptaculous/sound.js')
-rw-r--r--usr/local/www/javascript/scriptaculous/sound.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/local/www/javascript/scriptaculous/sound.js b/usr/local/www/javascript/scriptaculous/sound.js
index e2487cd..a286eb9 100644
--- a/usr/local/www/javascript/scriptaculous/sound.js
+++ b/usr/local/www/javascript/scriptaculous/sound.js
@@ -1,6 +1,6 @@
-// script.aculo.us sound.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008
+// script.aculo.us sound.js v1.8.3, Thu Oct 08 11:23:33 +0200 2009
-// Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
+// Copyright (c) 2005-2009 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Based on code created by Jules Gravinese (http://www.webveteran.com/)
//
@@ -50,6 +50,10 @@ Sound = {
if(Prototype.Browser.Gecko && navigator.userAgent.indexOf("Win") > 0){
if(navigator.plugins && $A(navigator.plugins).detect(function(p){ return p.name.indexOf('QuickTime') != -1 }))
Sound.template = new Template('<object id="sound_#{track}_#{id}" width="0" height="0" type="audio/mpeg" data="#{url}"/>');
+ else if(navigator.plugins && $A(navigator.plugins).detect(function(p){ return p.name.indexOf('Windows Media') != -1 }))
+ Sound.template = new Template('<object id="sound_#{track}_#{id}" type="application/x-mplayer2" data="#{url}"></object>');
+ else if(navigator.plugins && $A(navigator.plugins).detect(function(p){ return p.name.indexOf('RealPlayer') != -1 }))
+ Sound.template = new Template('<embed type="audio/x-pn-realaudio-plugin" style="height:0" id="sound_#{track}_#{id}" src="#{url}" loop="false" autostart="true" hidden="true"/>');
else
Sound.play = function(){};
-} \ No newline at end of file
+} \ No newline at end of file
OpenPOWER on IntegriCloud