PDA

View Full Version : Scripting for Audio - NS7, Mozilla and IE6


^KoalaBear^
09-07-2002, 03:02 PM
I seem to be having trouble writing the audio scripting for new browsers IE6, Mozilla1.1 and Netscape7 ... partic the latter 2. I have always tended to use what I thought were two very basic scripts for the older version browsers...

(a) For a 'hidden' player...
<bgsound src="waltzma.mid" HIDDEN=TRUE HIDDEN=AUTOSTART loop="true"><embed src="waltzma.mid" HIDDEN=TRUE HIDDEN=AUTOSTART loop="true">

(b) For a 'visible' player...
<center><noembed><BGSOUND SRC="waltzma.mid"></noembed><embed SRC="waltzma.mid" AUTOSTART=TRUE height=46 width=145 LOOP="true"></embed>

The Netscape and, I assume Mozilla clone of Netscape, go shooting me off to find a plugin... (I think my Netscape 4.7 uses 'Beatnik' as its player and I have no problems with that version)

Soooo I downloaded and installed those 2 main players rec at the NS Plugin site (QuickTime and WinAmp) and still cannot get either browser (NS7 and Mozilla) to play the site .mid or .wav files when visiting my test sites... or other sites I have had no previous troubles when using either of the above 2 scripts.

Refer these 2 test sites:
http://www.geocities.com/aussiecards/sound/sound-script-1.html
http://www.geocities.com/aussiecards/sound/sound-script-4.html

I guess my questions are...
Firstly is it my OWN browsers that cannot hear the midi files on the above sites coz I've not set them up properly... OR...
Can anyone please help me with both visible and hidden audio scripts that will be compatible with all 3 browsers (assuming IE4+ and NS4+ will be ok too) AND/OR, send me to a few good tut sites that might set my scripting straight. I am usin Win98 at present and IE6 is set as the default browser.

Sincere thanks.

KB...

jkd
09-07-2002, 04:29 PM
You can embed an instance of Windows Media player through <object>, it should work in Moz/NS7.

And BTW, I think you are a little confused about Moz vs NS7. NS7 is based off of Mozilla 1.0.1. Netscape is a branded version of Mozilla, while Mozilla is the open-source project that creates the code.

^KoalaBear^
09-07-2002, 05:04 PM
Originally posted by jkd
I think you are a little confused about Moz vs NS7. NS7 is based off of Mozilla 1.0.1. Netscape is a branded version of Mozilla, while Mozilla is the open-source project that creates the code.

Yes, being a newbie jkd, I wrongly assumed that Netscape was the 'Poppa Bear'. Thanks for the correction, my friend.

To clarify your advice..."You can embed an instance of Windows Media player through <object>, it should work in Moz/NS7." I'm going to have to ask you exactly what that means and how the codes I used in my examples, would need to be amended.

Regards
KB...

jkd
09-07-2002, 06:05 PM
Actually, I made a mistake about embedding WMP through <object>.... it would be an ActiveX object, and release builds of Moz shouldn't be supporting those kind of things until 1.2, if ever (but I believe you can compile ActiveX support in if you wish)...

I've never had the need to embed audio in a page... so, I don't know what to now that I think about it.

zoobie
09-09-2002, 01:56 AM
HIDDEN=AUTOSTART will probably throw an error. It should be AUTOSTART=TRUE HIDDEN=TRUE

^KoalaBear^
09-09-2002, 05:38 PM
Originally posted by zoobie
HIDDEN=AUTOSTART will probably throw an error. It should be AUTOSTART=TRUE HIDDEN=TRUE

Thanks zoobie...

I have changed the code to your suggested one, both work but I agree yours seems better... however it still doesnt load in my NS7. I am convinced theres something wrong with my set up.
If you (or anyone else) has NS7 could you please tell me if you hear the wav on this test site... and if so, which player does your browser use?

http://homepages.ihug.com.au/~dww8/sound/sound-script-c.html

Cheers!
KB