Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FireFox 2

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
Greetings,

I have a webpage with an embedded sound file which is called via a javascript functino to play on an onclick event. It works fine in Interent Expleore and Netscape, but i get the following error in firefox:

Error: document.sound1.Play is not a function
Source File: Line: 19

The function is:

function playSound(){
document.sound1.Play();
}
 
This issue has been a source of frustration to me for months!!!

And it is remarkably hard to find examples of people talking about it.

I think that it may be just not possible to autoplay embedded media in firefox, particualrly .wma's which are just so damn convienent for use in IE.

I hope someone provides an answer to this, because I sure as hell don't have one.


mr strauss
 
I have solved this problem!!!

Months this has taken me, literally months!!!!

here's the thing.

my first problem was that my host didn't have a mime type built in for .wma

So I went to Cpanel, which my host provides/uses i dunno, and I went to mime types and added a user defined mime type for wma's which, btw, is

audio/x-ms-wma

But that wasn't enough. SO then i tried this:
Code:
 <object> data="/audio/rappineric.wma" codetype="audio/x-ms-wma"   </object>
I added this code to my pages which, of course, is in addition to the
Code:
<embed name='CS1104085164738' src='/audio/rappineric.wma' loop="False" 
autostart="True" mastersound hidden="True" width=0 height=0></embed>
tags.



Here is a page where I got it to work for firefox 1.0. It still claims "play is not a function" and tells me I have an error if I look in the web developer toolbar, but it works!!!!!


Sweet jesus, thank you at last!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top