IBM developerWorks
           Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 15th, 2004, 02:19 AM
colabus colabus is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 46 colabus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 57 m 11 sec
Reputation Power: 4
Embeded MP3s in HTML

Hey guys,

I'm just doing a task for class where I need to have audio files playing on a wepbage. I got the midi file working fine, using:

<embed src="int/boa.mid" controller="false">

and the mpg playing fine also:

<embed src="int/clock.avi" loop="false"></embed>

Now my problem lies with the mp3 I need to do. I have my own webserver running on my linux machine (Apache) and I'm think that I need to changed, add a setting in there cause when the page loads it asks to download the file:

<embed src="int/untitled.mp3" controller="false">

I have done a little modifing with no luck, and I conclude it's the webserver, causethe page runs fine locally.

So i'm asking if anyone know what setting to add/change or is there a way around it using the code.

Thanks for any response.

Reply With Quote
  #2  
Old August 15th, 2004, 06:12 AM
tony84 tony84 is offline
tony
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2004
Location: manchester uk
Posts: 670 tony84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 11 m 38 sec
Reputation Power: 5
Send a message via AIM to tony84 Send a message via MSN to tony84
im not 100% sure about this but i think the only music files you can play are midi and wav files
__________________
Free Forum hosting for clans

Reply With Quote
  #3  
Old August 16th, 2004, 05:34 AM
sunny-d.tk sunny-d.tk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 12 sunny-d.tk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 19 m
Reputation Power: 0
i think it works if u embed the windows media player thing. then you can make that invisible

heres the code i use. put it in the body

<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer1">
<param name="URL" value="Untitled.mp3">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="invisible">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
</object>

Reply With Quote
  #4  
Old August 16th, 2004, 05:41 AM
tony84 tony84 is offline
tony
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2004
Location: manchester uk
Posts: 670 tony84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 11 m 38 sec
Reputation Power: 5
Send a message via AIM to tony84 Send a message via MSN to tony84
would that not only work on windows based computers if your using internet explorer?

Its not a good idea to get your website so it only works on 1 browser, unless your getting 90% + of your users using IE and windows

Reply With Quote
  #5  
Old August 17th, 2004, 08:33 AM
sunny-d.tk sunny-d.tk is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 12 sunny-d.tk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 19 m
Reputation Power: 0
yeh but he said its a task for class. hopefully he's on windows and running internet explorer

Reply With Quote
  #6  
Old August 17th, 2004, 10:52 AM
tony84 tony84 is offline
tony
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2004
Location: manchester uk
Posts: 670 tony84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 11 m 38 sec
Reputation Power: 5
Send a message via AIM to tony84 Send a message via MSN to tony84
ah if thats the case then i suppose it should be ok, but id just use a midi file instead if its not really that important

Reply With Quote
  #7  
Old August 21st, 2004, 02:51 AM
colabus colabus is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 46 colabus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 57 m 11 sec
Reputation Power: 4
Ahh thanks guys.

I tried it in class and it worked with what I originally had, so i'm not sure whether the teacher has apache setup differently or wether it's some setting in IE.

Either way what I had worked.

Thanks for the replies!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Embeded MP3s in HTML


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway