Solved

can't EMBED a sound file

Posted on 1998-09-22
7
287 Views
Last Modified: 2010-04-09
i have the following codes in one of my html file:-

<embed src="spacemusic.au" height="2" width="2" autostart="true" loop="true"></embed>

it works fine in IE (i tried WAVs, MIDs and AUs) but not in netscape4 (no sound at all)..the following is configured as the mime-type in Netscape-
extension: WAV
MIME: audio/wav
handled by: Rundll32

why wouldn't it work in netscape.
0
Comment
Question by:eriklee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 1

Expert Comment

by:development
ID: 1838014
have you tried adding volume=70 or something that will give some sound :)
0
 

Accepted Solution

by:
jervis earned 50 total points
ID: 1838015
Well it's not how the mime-type is configured in Netscape, the actual Problem is: what mime-type is sent to netscape from the server when you request the "spacemusic.au"?

For a quick fix, try this:

<embed src="..." height=2 width=2 autostart=true loop=true type="audio/wav">

by the way: are you sure that .au is audio/wav? in my netscape this is linked to the "audio/basic" mime-type. check your plugins page (enter "about:plugins" as url)

0
 
LVL 1

Expert Comment

by:development
ID: 1838016
Jervis:
AU is audio.  Its playable on unix and pc's alike
0
WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

 

Expert Comment

by:jervis
ID: 1838017
.au is the sun audio format and it's not compatible with the normal .wav format used by microsoft (also known as RIFF WAVEfmt, which is the text in the header of an .wav file).

to make things worse, netscape also supports the aiff (or iff-audio) file format for playing audio, which comes from the amiga.


0
 

Author Comment

by:eriklee
ID: 1838018
hi Jervis,
u gave me some very good pointers..  The only reason Netscape didn't work is there is no helper-application configured (as hinted by u). So i installed BEATNIK - don't ask me why it's just that i plucked Beatnik out of a list of suggested plugins from the netscape site.

However after installing beatnik - i checked the mime helper application within netscape -- audio/mid is still being handled by Rundl32 (which is a microsoft thingy). I tried to followed the instruction from Beatnik to change the helper for midi but the Preferences-panel only has 'application' as an attribute nothing for "plugins". Beatnik is a java thingy with a class file beatnik.class in c:\program files\netscape\communicator\Plugins\  and u can't put this file into the helper-application.

So, even with all this confusion with defining the helper.. netscape/beatnik can still play the midi sound if you double click on the embeded-sound to play even when autostart is true. And when u load a html file with mid or rmi files, java is loaded - suggesting beatnik.class was loaded.

added 20 more points for some more comments. thanks

0
 

Expert Comment

by:jervis
ID: 1838019
on my browser, the default plugin to handle audio/midi is still LiveAudio. this plugin comes with the complete communicator package.

there is a difference between plugins, which handle mime-type in your browser window (more or less) and application mime-types. when netscape has downlaoded a file it has no internal plugin for then it searches the application database. if it finds a match in mime-type there, it asks if it should launch the external application with that file.

you cannot change the mime types the plugins handle, you can just view them with typing "about:plugins" in the URL field or by selecting "help->about plugins" in the menu.

maybe you should try SmartUpdate to install the LiveAudio plugin. It cannot be downloaded via the plugins page, because this plugin comes bundled with your navigator4/communicator package.
check: http://home.netscape.com/download/su1.html?cp=downlsmup

0
 

Author Comment

by:eriklee
ID: 1838020
thanks i think i will reinstall Netscape communicator for LIveaudio.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question