Login | Register | FAQ
Anonymous

link/upload audio file

+ Post a reply

9 posts Page 1 of 1


link/upload audio file

by jona » Fri Apr 27, 2012 10:20 pm

hei how can i inbed a wave file into my site?
(meaning that there is something to click on to start playing the file and liking the file to that button)
It must be different to a picture, because a picture is always there, doent need to be started and it doesnt need a player either..

thanks for your help

gruss jona
User avatar

jona

  • Posts: 9
  • Joined: Fri Apr 13, 2012 1:35 pm

Re: link/upload audio file

by XainPro » Sat Apr 28, 2012 8:32 pm

well i think wav is not recommended for web and almost i think not able to embend it into web so you should convert all your wav file into mp3 which is widely supported format and you have to use any free web based video player for this here is 1 free video player which is able to play mp3 and have control panel like play,pause,forward, previous etc.
But yah there is a good option for wav to play in web in HTML 5
http://www.w3schools.com/html5/html5_audio.asp
but older browsers and IE 9 will not support it..
User avatar

XainPro

  • Posts: 3567
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: link/upload audio file

by jona » Thu Jan 17, 2013 11:59 pm

hei - I programmed an html5 version (according to the link above) but it is not working.
It is opening a new page and it shows a player but it wont play the file and the player is not "active" as well meaning you can not press the buttons that are being shown

my code:
<!DOCTYPE html>
<html>

<head>
<title>letztes teil</title>
</head>

<body style="background-color: off white;">

<audio controls>
<source src="letztes teil.wav" type="audio/wav">
Your browser does not support the audio element.
</audio>

<br />
<br />

</body>

</html>

thanks for the help I appriciate it - Jona
User avatar

jona

  • Posts: 9
  • Joined: Fri Apr 13, 2012 1:35 pm

Re: link/upload audio file

by XainPro » Fri Jan 18, 2013 8:46 am

is
letztes teil.wav
file exist in the same folder of html file ?
if then then try to remove space between file or check wav format.
User avatar

XainPro

  • Posts: 3567
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: link/upload audio file

by XainPro » Fri Jan 18, 2013 8:48 am

in internet explorer
Internet Explorer 9+ wav is not playable as well.
User avatar

XainPro

  • Posts: 3567
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: link/upload audio file

by jona » Fri Jan 18, 2013 11:08 am

thanks, yes it is in the same folder. I ll try taking the space away. and I am viewing with google chrome. so that should be alright?!
User avatar

jona

  • Posts: 9
  • Joined: Fri Apr 13, 2012 1:35 pm

Re: link/upload audio file

by jona » Sat Jan 19, 2013 3:50 pm

still not working.( I always get an Error message like 'file not found' or: 'website not found'

I am using this code now:


<html>

<head>
<title>letztes teil</title>
</head>

<body style="background-color: off white;">

<embed src="letztesteil.mp3" width="344" height="60" autostart="true">
you dont support the sound format</embed>

</body>

</html>

could it have to do with the page not being uploaded yet (but shouldnt it work with my browser and folder without internet?)

helpplease :j
User avatar

jona

  • Posts: 9
  • Joined: Fri Apr 13, 2012 1:35 pm

Re: link/upload audio file

by XainPro » Mon Jan 21, 2013 7:20 am

Yes it would work without internet What is the version of chrome you are using maybe your Browser is old
or the spelling of
letztesteil.mp3 are different from the file name spelling or maybe it would be case sensitive is all of your file name characters are lower case ?
User avatar

XainPro

  • Posts: 3567
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: link/upload audio file

by jona » Mon Jan 21, 2013 9:19 pm

hei thanks for your post!! I have now pasted the file into a different folder and look: now it is working! weird thing, but somehow it did not like the path of the file.. programmes, so moody..
anyways - I#ll probably keep (de)bugging here. I m getting hooked on that programming stuff making websites .)

cheerio JONA
User avatar

jona

  • Posts: 9
  • Joined: Fri Apr 13, 2012 1:35 pm


+ Post a reply

Page 1 of 1

?>