Omnimaga

General Discussion => Technology and Development => Web Programming and Design => Topic started by: ACagliano on May 04, 2010, 11:48:07 am

Title: Help with Html
Post 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?
Title: Re: Help with Html
Post by: DJ Omnimaga on May 04, 2010, 11:50:48 am
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.
Title: Re: Help with Html
Post by: ACagliano on May 04, 2010, 11:54:52 am
.wav


and the freewebs editor supports java as well
Title: Re: Help with Html
Post by: DJ Omnimaga on May 04, 2010, 12:05:05 pm
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
Title: Re: Help with Html
Post by: Galandros on May 06, 2010, 04:23:26 pm
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. ;)
Title: Re: Help with Html
Post by: DJ Omnimaga on May 06, 2010, 10:13:22 pm
Doesn't it have some specific issues, though? I think most were video-related, though, such as on Youtube.
Title: Re: Help with Html
Post by: Galandros on May 07, 2010, 12:41:33 pm
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. ;)
Title: Re: Help with Html
Post by: DJ Omnimaga on May 07, 2010, 05:47:36 pm
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
Title: Re: Help with Html
Post by: Galandros on May 07, 2010, 05:59:09 pm
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...
Title: Re: Help with Html
Post by: Ikkerens on December 01, 2010, 01:47:13 pm
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 :)
Title: Re: Help with Html
Post by: DJ Omnimaga on December 01, 2010, 02:12:27 pm
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.
Title: Re: Help with Html
Post by: Ikkerens on December 01, 2010, 02:15:00 pm
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 ;)
Title: Re: Help with Html
Post by: DJ Omnimaga on December 01, 2010, 02:25:32 pm
WebKit? Never heard of that one ??? The only major browsers I know of are IE, Firefox, Chrome, Opera and Safari...
Title: Re: Help with Html
Post by: Ikkerens on December 01, 2010, 02:45:37 pm
Webkit is the engine running Safari & Chrome ;)
Title: Re: Help with Html
Post by: DJ Omnimaga on December 01, 2010, 02:56:37 pm
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)
Title: Re: Help with Html
Post by: jnesselr on December 02, 2010, 07:18:39 am
I think webkit is more or less used to be able to develop for safari, IIRC.