Hi Stephen, 

As stated the best method to embed sound is using Flash but there are other 
techniques.

This is the last version I used for playing a single MP3 with a play / stop 
button:

In XHTML:
<object id="sound" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" 
height="25px" width="25px">
  <param name="AutoStart" value="0" />
  <param name="ShowAudioControls" value="0" />
  <param name="ShowTracker" value="0" />
  <param name="filename" value="/sounds/systole.mp3" />
  <embed id="sound2" src=/sounds/systole.mp3" controls="smallconsole" 
autostart="false" align="absbottom" height="18" width="18"></embed>
</object>

In CSS:
#sound  {display:inline; margin:0 0.5em}


Personally it's an awful method, and it does not validate.

I'd wait for Patrick Lauke's example then look at Sam Sherlock's post "make 
poverty history" for methods to embed it into a page.


Mike 2k:)2

____________________________________________________________________________________
 
 Mike Foskett 
 Web Standards, Accessibility & Testing Consultant
 Multimedia Publishing and Production 
 British Educational Communications and Technology Agency (Becta) 
 Milburn Hill Road, Science Park, Coventry CV4 7JJ 
 Email: [EMAIL PROTECTED] 
 Tel:  02476 416994  Ext 3342 [Tuesday - Thursday]
 Fax: 02476 411410 
 www.becta.org.uk
____________________________________________________________________________________
 



-----Original Message-----
From: Stevio [mailto:[EMAIL PROTECTED] 
Sent: 17 May 2005 18:30
To: [email protected]
Subject: Re: [WSG] Playing a sound file - what is the best way?

Is there no standard way then to play an audio file (say mp3 for arguments
sake) using the object tag?

Is the only standard way to just link to it using <a href="file.mp3">?

Stephen

----- Original Message -----
From: "Mike Foskett" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, May 17, 2005 5:14 PM
Subject: RE: [WSG] Playing a sound file - what is the best way?


I completely agree, use Flash.
I'd say the same for video too, for the same reasons.

Why:
  One solution multiple platforms.
  Saturation on all computers is over 90%. That's more than any browser.
  No platform compatibility issues Mac / PC.
  No browser issues Firefox / IE / Netscape / Opera.

With a single start / stop button in Flash, alongside a link to download the 
file. 



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.12 - Release Date: 17/05/2005

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************






**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************


******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to