koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-devel] Re: Koha Sound Events


From: Darrell Ulm
Subject: [Koha-devel] Re: Koha Sound Events
Date: Thu, 4 Feb 2010 16:35:38 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Kyle Hall <address@hidden> writes:

> 
> Have you thought about using the HTML 5 <audio> tag?
> 
> http://html5doctor.com/native-audio-in-the-browser/
> 

Kyle,

Yes, the HTML5 did the trick for Mozilla (using 3.6). 
It is fast and there is
*no* delay and no page refresh. It just works. 

OK, so the *other* browsers don't yet implement it, 
but they should if they want
to stay compliant. Koha primarily supports Firefox 
so this should not be an issue. 

They can play catch up. I just did the following:

<!-- TMPL_IF NAME="soundon" -->
<script type="text/javascript" language="javascript">
if ( get_cookie( "kohastaffsound" ) == "yes" )
        {
        document.write('<audio src="/intranet-tmpl/prog/sound/beep.wav" autoplay
autobuffer></audio>');
        }
</script>
<!-- /TMPL_IF -->

Sound on is the syspref. 

The HTML 5 autoplay and especially the autobuffer appear to make it work very
nicely. 

Well, I have a bunch of open source sounds (Artistic Licence 2.0) so I can
finish this up and have Galen "soundly" reject it!  (Just a joke Galen)   :)

-Darrell Ulm










reply via email to

[Prev in Thread] Current Thread [Next in Thread]