#260 new
ronin-76573 (at lighthouseapp)

Sound.js streaming audio

Reported by ronin-76573 (at lighthouseapp) | November 14th, 2009 @ 09:07 PM

I noticed the script is not capable handling streaming audio. I managed to change that for at least the most popular browsers which are running on windows using The MS Mediaplayer. I attached the code

You can see it running at http://wekkerradio.berkheij.nl/

in order to play mp3, wave or streaming audio (like radiostations) without worries, the default template code should be:
new Template(''

          +'<param name="URL" value="#{url}">'
          +'<param name="autostart" value="-1">'
          +'<param name="hidden" value="true">'
          +'<param name="ShowControls" value="false">'
          +'<param name="ShowStatusBar" value="false">'
          +'<param name="ShowDisplay" value="false">'
          +'<embed name="mediaplayer" id="sound_#{track}_#{id}" type="application/x-mplayer2" width="0" height="0" src="#{url}" autostart="1" loop="0" autostart="1" hidden="1" ShowControls="0" />'
          +'</embed>'
          +'</OBJECT>')

One small note: On Internet Explorer 8 there is a small dot visible and sometimes a small square during creation or replacement of the object.

Tested on a Windows 7 Ultimate pc
with browsers:
Firefox 3.5.5
Safari 4.04
Internet Explorer 8.0.7600.16385 (also with compatibilitymode)
Opera 10.01 Build 1844

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours.
<br/><b>Source available from github</b>
The Git repository resides at:
<a href="http://github.com/madrobby/scriptaculous">http://github.com/madrobby/scriptaculous</a>
<br/>Check out the current development trunk with:
<code>git clone git://github.com/madrobby/scriptaculous.git</code>
<br/>As <b>script.aculo.us 1.xx is feature-frozen</b>, this development trunk is for <b>bugfixes only</b>.
<br/>New development should happen only for
<b>script.aculo.us 2</b>.
<br/><b>Creating a bug report</b>
When creating a bug report, be sure to include as much relevant information as possible. Post a an example that shows off the problem. Preferably, <b>alter the unit tests</b> and show through either changed or added tests how the expected behavior is not occuring.

People watching this ticket

Attachments

Pages