{"id":2622,"date":"2011-01-16T20:29:37","date_gmt":"2011-01-16T14:59:37","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=2622"},"modified":"2011-01-19T13:14:10","modified_gmt":"2011-01-19T07:44:10","slug":"audio-html5","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/audio-html5\/","title":{"rendered":"Audio html5"},"content":{"rendered":"<p>Audio tag is a html 5 element. You can play audio file on web page without any third party plug-in. This will work only on html5 compliant browser.<br \/>\n<\/p>\n<p>Flash player is widely used  to play audio and video files  on web. There are some third party plug-ins likes Flash Player, QuickTime, Real Player etc available for this. The main disadvantage of Third party plug-ins is that  we need to download client side browser.<br \/>\n<\/p>\n<p>Audio tag is embeded in HTML:<br \/>\n[groovy]<br \/>\n&lt;audio src=&quot;audio.ogg&quot; controls=&quot;controls&quot;&gt;<br \/>\nYour browser does not support the audio element.<br \/>\n&lt;\/audio&gt;<br \/>\n[\/groovy]<\/p>\n<p><strong>Use Attribute in audio  tag<\/strong><\/p>\n<table cellspacing=\"1\" cellpadding=\"4\" bgcolor=\"#cccccc\" width=\"100%\" style=\"border-spacing: 1px; border-collapse: inherit; font-size: 12px; font-family: Arial,Helvetica,sans-serif,'Arial Rounded MT Bold';\">\n<tbody>\n<tr>\n<td bgcolor=\"#e6e6e6\" width=\"100\"><strong> Attribute<\/strong><\/td>\n<td bgcolor=\"#e6e6e6\" width=\"100\"><strong> Value<\/strong><\/td>\n<td bgcolor=\"#e6e6e6\"><strong> Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">autoplay<\/td>\n<td bgcolor=\"#ffffff\">autoplay<\/td>\n<td bgcolor=\"#ffffff\">The start playing audio.<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">controls<\/td>\n<td bgcolor=\"#ffffff\">controls<\/td>\n<td bgcolor=\"#ffffff\">Controls is display as a play<br \/>\n\tbutton.<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">loop<\/td>\n<td bgcolor=\"#ffffff\">loop<\/td>\n<td bgcolor=\"#ffffff\">The audio will start over again, whenis  finished.<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">preload<\/td>\n<td bgcolor=\"#ffffff\">auto<br \/>\nmetadata<br \/>\nnone<\/td>\n<td bgcolor=\"#ffffff\">Audio should be loaded when the page<br \/>\n\tloads.<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">src<\/td>\n<td bgcolor=\"#ffffff\"><i>url<\/i><\/td>\n<td bgcolor=\"#ffffff\">Defines the URL of the audio to play<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Support browser<\/strong><\/p>\n<table cellspacing=\"1\" cellpadding=\"4\" bgcolor=\"#cccccc\" width=\"100%\" style=\"border-spacing: 1px; border-collapse: inherit; font-size: 12px; font-family: Arial,Helvetica,sans-serif,'Arial Rounded MT Bold';\">\n<tbody>\n<tr>\n<td bgcolor=\"#e6e6e6\" width=\"100\"><strong>Browser<\/strong><\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">FireFox 3.6+<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">Safari 5+<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">Chrome 6<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">Opera 10.5+<\/td>\n<\/tr>\n<tr>\n<td bgcolor=\"#ffffff\">IE 9(beta)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\nUmar Pahat<br \/>\nUmar [at] intelligrape [dot] comAudio tag is a html 5 element. You can play audio file on web page without any third party plug-in. This we  work only on html5 compliant  browser support.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Audio tag is a html 5 element. You can play audio file on web page without any third party plug-in. This will work only on html5 compliant browser. Flash player is widely used to play audio and video files on web. There are some third party plug-ins likes Flash Player, QuickTime, Real Player etc available [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1},"categories":[1],"tags":[491,378],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/2622"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=2622"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/2622\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=2622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=2622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=2622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}