|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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> |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
yeh but he said its a task for class. hopefully he's on windows and running internet explorer
|
|
#6
|
|||
|
|||
|
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
|
|
#7
|
|||
|
|||
|
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! ![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Embeded MP3s in HTML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|