• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 305
  • Last Modified:

CGI generates HTML with EMBED for AUDIO problem

A CGI/Perl scripts generates HTML and sends it back to the browser via a "Content-type: text/html"

The html contains a:
<embed src="file.mid" width=16 height=16  
             hidden="false" autostart="true" volume=100 loop="true"  nosave="true">

The embed is correctly recognised and audio played by most browsers.

However some and in particular the AOL browsers do not produce any sound.

If the same HTML is written to the server's file store and a "Location: URL" is used instead of the "Content-type: text/html" then it works, prooving that it was not a particular plug-in fault.

Any ideas why sound is sometimes not audible when in "Content-type: text/html" rather than "Location: URL" mode?
1 Solution
martinRAuthor Commented:
Edited text of question.
I had this same problem with AOL and their older software.  
Besides your "<EMBED src="file.mid" hidden autostart=true loop=...etc...etc>" code, you should also send a "<BGSOUND SRC="file.mid" AUTOSTART=true LOOP=true...etc...etc>" which the older AOL browsers understand...
It solved the problem, and I always include both lines in all HTML documents now just for formality.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now