PC Pals Forum

Technical Help & Discussion => Website Design & Programming => Topic started by: sam on January 19, 2011, 04:15

Title: HTML5 Primer: How To Use the Audio Tag
Post by: sam on January 19, 2011, 04:15
Quote
In our series on HTML5, we've discussed geolocation, link relations, form and keyboard events, media events, mouse events, global attributes and multimedia. This week we're going to expand upon our discussion on multimedia and delve further into HTML5's audio tag.

http://www.htmlgoodies.com/primers/html/article.php/3920991
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: Rik on January 19, 2011, 11:31
 :stars:
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: sam on January 19, 2011, 15:16
its the future!
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: Rik on January 19, 2011, 16:20
I'm more the past, Sam. :)
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: sam on January 19, 2011, 16:43
boo.
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: Rik on January 19, 2011, 16:52
It's the pantomime season. ;D
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: Simon on January 19, 2011, 17:02
Oh no it isn't.  :basil:
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: Rik on January 19, 2011, 17:22
Oh yes it is. ;D
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: sam on January 19, 2011, 17:26
what have I started?
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: Rik on January 19, 2011, 17:29
The fun and games. Pass the tangerines. ;D
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: Simon on January 19, 2011, 17:56
:laugh:
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: Rodders on January 19, 2011, 23:42
Any idea of the syntax for the 'controls' attribute, Sam?  Is it simply matter of leaving it out of the code if the control isn't required?

Each Christmas I like to have a good quality festive midi toon playing softly in the background on pageload (no-repeat).  Obviously, the appearance of a control bar instead of the desired page would be pretty jolly silly.  It's a shame HTML5 is still quite some way off, as it does indeed appear to represent "the future".  It's also likely to kill me having to manually update 200+ pages from a primordial version of HTML.   :ack:
Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: sam on January 20, 2011, 00:37
Any idea of the syntax for the 'controls' attribute, Sam?  Is it simply matter of leaving it out of the code if the control isn't required?

Each Christmas I like to have a good quality festive midi toon playing softly in the background on pageload (no-repeat).  Obviously, the appearance of a control bar instead of the desired page would be pretty jolly silly.  It's a shame HTML5 is still quite some way off, as it does indeed appear to represent "the future".  It's also likely to kill me having to manually update 200+ pages from a primordial version of HTML.   :ack:


yes, that is the case - have a go at it: http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_audio_autoplay

Update 200+ - that's what php include helps fantastically with.


Title: Re: HTML5 Primer: How To Use the Audio Tag
Post by: Rodders on January 22, 2011, 01:04
Dead brill!  Bookmarked, thanks.   8-)