A
Andrew Poulos
I'm using Windows Media Audio, via a WAX file, and I have some custom
controls to start and stop the audio. While it works in IE, FF gives an
error. The HTML looks like this:
<object id='obj' type='audio/x-ms-wax'
style='position:absolute; left:0px; top:0px;'
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codeBase='http://activex... blah
width='100' height='100'>
<param name='FileName' value='wma_sample.wax'>
<param name='AutoStart' value='0'>
<embed id='objff' type='audio/x-ms-wax'
src='wma_sample.wax' autostart='0' width='100' height='100'></embed>
</object>
and the relevant FF JavaScript look like this:
if (typeof document.getElementById('objff').Play != "undefined") {
document.getElementById('objff').Play();
} else {
alert("An error occurred and the audio could not be played.");
}
If I change the type and the sample to an MP3 file then the custom
controls work in FF. Is there a way to get FF to control WMA?
Andrew Poulos
controls to start and stop the audio. While it works in IE, FF gives an
error. The HTML looks like this:
<object id='obj' type='audio/x-ms-wax'
style='position:absolute; left:0px; top:0px;'
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codeBase='http://activex... blah
width='100' height='100'>
<param name='FileName' value='wma_sample.wax'>
<param name='AutoStart' value='0'>
<embed id='objff' type='audio/x-ms-wax'
src='wma_sample.wax' autostart='0' width='100' height='100'></embed>
</object>
and the relevant FF JavaScript look like this:
if (typeof document.getElementById('objff').Play != "undefined") {
document.getElementById('objff').Play();
} else {
alert("An error occurred and the audio could not be played.");
}
If I change the type and the sample to an MP3 file then the custom
controls work in FF. Is there a way to get FF to control WMA?
Andrew Poulos