Omnimaga
General Discussion => Technology and Development => Web Programming and Design => Topic started by: ACagliano on May 04, 2010, 11:48:07 am
-
I need help with something. I am trying to embed an audio file that I have uploaded to my website onto a webpage. The embed works, but I can't seem to get the autoplay to work. I use freewebs. Can anyone with knowledge of html tell me what code to use?
-
What audio format are you using? I think the embeeded code might be a bit different from MP3 to WAV, for example, but I'm not sure anymore. Also watch out for code that only works in one browser. Otherwise you might be able to find some help on http://www.w3schools.com/html/default.asp . It's my favorite HTML/CSS site.
-
.wav
and the freewebs editor supports java as well
-
Mhmm it looks like the tag you're looking for is <embed>, but it appears to be a HTML 5 tag. I wonder if it means you need to write the entire site in HTML5 if you use it?
I don't have much experience with HTML x.x
-
HTML 5 has good support by browsers, right now.
If you can use this doctype in the start of the html file, to recognize as html 5.
<!DOCTYPE html>
And use the <audio> tag:
http://www.w3schools.com/html5/tag_audio.asp
See the autoplay attribute. ;)
-
Doesn't it have some specific issues, though? I think most were video-related, though, such as on Youtube.
-
Doesn't it have some specific issues, though? I think most were video-related, though, such as on Youtube.
Never tested much of the HTML5 features so I don't know if autoplay is working.
I know that in Firefox I am able to listen audio and watch videos. ;)
-
I think for Youtube it was related to the H.264 video codec or something like that not being built-in Opera. But I'm not sure anymore.
I'm not sure why Youtube tries so hard to make sure their site only works in two browsers, especially Chrome. I wouldn't be surprised if there was some sort of conspiracy to sell out Google Chrome and Firefox
-
I think for Youtube it was related to the H.264 video codec or something like that not being built-in Opera. But I'm not sure anymore.
I'm not sure why Youtube tries so hard to make sure their site only works in two browsers, especially Chrome. I wouldn't be surprised if there was some sort of conspiracy to sell out Google Chrome and Firefox
Ah, I have read something going on about that video codec. Microsoft said it would only support H.264 videos in Internet Explorer, not supporting .ogg format is somewhat bad news...
-
I know this is necroposting, but I might have the solution to this:
http://www.schillmania.com/projects/soundmanager2/
It is a JavaScript lib which allows you to play sounds trough a special flash plugin.
I've been using it for quite a while and it never failed me :)
-
Nice, I wonder in which browser will it work. It seems to work pretty well in Opera 10.64. I guess it could eventually be useful if I wanted a music player somewhere or something.
-
I have tested this in all major browsers (IE, FF, WebKit, Opera) using their most current version about half a year ago.
Dunno about other browsers though ;)
-
WebKit? Never heard of that one ??? The only major browsers I know of are IE, Firefox, Chrome, Opera and Safari...
-
Webkit is the engine running Safari & Chrome ;)
-
Oh ok, I thought it was a totally different browser, something exclusive to or more popular in the Netherlands and Germany. (like how ICQ is more popular in germany than MSN, AIM and Yahoo, for odd reasons)
-
I think webkit is more or less used to be able to develop for safari, IIRC.