Author Topic: Help with Html  (Read 9779 times)

0 Members and 1 Guest are viewing this topic.

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Help with Html
« 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?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Help with Html
« Reply #1 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.

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: Help with Html
« Reply #2 on: May 04, 2010, 11:54:52 am »
.wav


and the freewebs editor supports java as well
« Last Edit: May 04, 2010, 11:55:14 am by ACagliano »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Help with Html
« Reply #3 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

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Help with Html
« Reply #4 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. ;)
« Last Edit: May 06, 2010, 04:24:09 pm by Galandros »
Hobbing in calculator projects.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Help with Html
« Reply #5 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.

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Help with Html
« Reply #6 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. ;)
Hobbing in calculator projects.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Help with Html
« Reply #7 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
« Last Edit: May 07, 2010, 05:47:47 pm by DJ Omnimaga »

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Help with Html
« Reply #8 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...
Hobbing in calculator projects.

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: Help with Html
« Reply #9 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 :)

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Help with Html
« Reply #10 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.

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: Help with Html
« Reply #11 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 ;)

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Help with Html
« Reply #12 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...

Offline Ikkerens

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 378
  • Rating: +28/-9
  • JavaScript Magician
    • View Profile
    • Walotech
Re: Help with Html
« Reply #13 on: December 01, 2010, 02:45:37 pm »
Webkit is the engine running Safari & Chrome ;)

Splut for Android [----------]
Paused/halted indefinitely, might be abandoned, our graphic designer quit and the rest of us simply doesn't have the time to work on it...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Help with Html
« Reply #14 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)