iNET Interactive - Online Advertising Agency
          
Go Back  Xtreme Visual Basic Talk > Other Languages > Web Programming > embed an MP3 into your HTML code


Reply
 
Thread Tools Display Modes
  #1  
Old 12-30-2002, 12:01 PM
trostycp trostycp is offline
Regular
 
Join Date: Oct 2002
Posts: 66
Question embed an MP3 into your HTML code

Does anyone know the code to include an MP3 into HTML code, so that when the webpage is accessed the song plays? In addition to that, does the MP3 have to be in any particular format?
Reply With Quote
  #2  
Old 12-30-2002, 04:48 PM
Rezner's Avatar
Rezner Rezner is offline
C# Lover
* Expert *
 
Join Date: Jan 2002
Location: 00-80-C8-C3-2E-52
Posts: 1,899
Default

Code:
<EMBED src="file.mp3" autostart=true hidden=true>
But, using an MP3 like this could be annoying to your users as it may be a sizeable download. Also, it is important to note that the server may need to have the MIME properly configured.

If that doesn't work, try changing the file type from .mp3 to m3u and then using:
Code:
<EMBED src="file.m3u" autostart=true hidden=true>
__________________
"Man is still the best computer we can put aboard a spacecraft...and the only one that can be mass produced with unskilled labor." - Wernher von Braun
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Advertisement: