magtree
08-01-2006, 10:29 PM
I have been putting up audio clips for a church website. My method has been to (1) Have a list which links to a *.m3u file (essentially a playlist file), (2) this file calls a page on which I have used the <EMBED> tag set so as to automatically play the audio in pseudo-streaming.
The HTML on one page as an example is:
<div align="center">
<embed src=announcements.m3u height="45" width="200"
autostart="true" align="absmiddle"
type="audio/mpeg"/>
</div>
It works quite well, I think. The problem is that the <EMBED> tag calls the EOLAS Activex Activation Box each time IE is used. (It works normally in FireFox, Netscape and Opera).
MS has offered a partial solution, i.e., to call the player from a javascript, and remove the <EMBED> function from the HTML. The one I use for the above is:
document.write('<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="250" height="45" />');
document.write('<param name="URL" value="announcements.mp3">');
document.write('<param name="autoStart" value="-1">');
document.write('<param name="type" value="audio/mpeg"></object>');
This too works well - at least for IE; no other browser appear to be able to read it. Thus it requires EVERY page to have one for IE and one for "all other browsers." It also requires every page to have a separate js file. It is a great deal of duplication!
My URL - to see how I have had to set this up - is at:
www.magtreedesigns.com/pop/audio/audio_list.html
There you will see the different link that is needed to play each track.
Is there any way to leave the <EMBED> tags in place, and use a single javascript to inactivate the very annoying little drop down "Active x" box? I have read a number of solutions that deal with FLASH, but trying it in this scenario, i.e., the <EMBED> tag - those solutions don't seem to work.
I would appreciate any help on this.
Many thanks,
Al
The HTML on one page as an example is:
<div align="center">
<embed src=announcements.m3u height="45" width="200"
autostart="true" align="absmiddle"
type="audio/mpeg"/>
</div>
It works quite well, I think. The problem is that the <EMBED> tag calls the EOLAS Activex Activation Box each time IE is used. (It works normally in FireFox, Netscape and Opera).
MS has offered a partial solution, i.e., to call the player from a javascript, and remove the <EMBED> function from the HTML. The one I use for the above is:
document.write('<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="250" height="45" />');
document.write('<param name="URL" value="announcements.mp3">');
document.write('<param name="autoStart" value="-1">');
document.write('<param name="type" value="audio/mpeg"></object>');
This too works well - at least for IE; no other browser appear to be able to read it. Thus it requires EVERY page to have one for IE and one for "all other browsers." It also requires every page to have a separate js file. It is a great deal of duplication!
My URL - to see how I have had to set this up - is at:
www.magtreedesigns.com/pop/audio/audio_list.html
There you will see the different link that is needed to play each track.
Is there any way to leave the <EMBED> tags in place, and use a single javascript to inactivate the very annoying little drop down "Active x" box? I have read a number of solutions that deal with FLASH, but trying it in this scenario, i.e., the <EMBED> tag - those solutions don't seem to work.
I would appreciate any help on this.
Many thanks,
Al