{"id":377762,"date":"2010-03-01T21:39:28","date_gmt":"2010-03-02T02:39:28","guid":{"rendered":"http:\/\/techie-buzz.com\/featured\/html5-video-tag-support-for-all-browsers.html"},"modified":"2010-03-01T21:39:28","modified_gmt":"2010-03-02T02:39:28","slug":"html5-tag-support-for-all-browsers","status":"publish","type":"post","link":"https:\/\/mereja.media\/index\/377762","title":{"rendered":"HTML5  Tag Support For All Browsers"},"content":{"rendered":"<p><a title=\"Articles about HTML5\" rel=\"tag\" href=\"http:\/\/techie-buzz.com\/tag\/html5\" >HTML5<\/a> Videos is a very big feature which will render Flash videos almost useless, however not every browser supports HTML5 yet, the few that do also are either development versions or beta versions.<\/p>\n<p>So, as a developer how would you switch to HTML videos? Well, there is a way by using a new JavaScript API which adds support for the HTML5 &lt;video&gt; tag in all browsers.<\/p>\n<p>The API in question is called &#8220;html5media&#8221; and makes use of jQuery to display the default HTML5 video player if the browser supports it, or defaults to <a href=\"http:\/\/www.flowplayer.org\/\" >Flowplayer<\/a> if the browser does not support it.<\/p>\n<p>This will ensure that your &lt;video&gt; tag will play in all browsers, irrespective of whether they support it or not, definitely a good way to start using HTML5 videos in your project.<\/p>\n<p>The only downside of this API is that you will have to include a JavaScript library in all pages that you want to insert the HTML5 videos in as shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; float: none; margin-left: auto; margin-right: auto; border: 0px;\" title=\"HTML5 Video Support for All Browsers\" src=\"http:\/\/cache.techie-buzz.com\/images\/postimg\/HTML5VideoSupportForAllBrowsers_12B73\/html5_video_in_all_browsers.png\" border=\"0\" alt=\"HTML5 Video Support for All Browsers\" width=\"541\" height=\"140\" \/><\/p>\n<p>Once you do that, the html5media JavaScript library will take care of displaying the videos to both HTML5 browsers as well those which do not support it.<\/p>\n<p>Download and Learn more about <a href=\"http:\/\/code.google.com\/p\/html5media\/\" >html5media<\/a>. You can also view <a href=\"http:\/\/static.etianen.com\/html5media\/\" >the demo<\/a> of the script in action by visiting this page on a HTML5 compliant browser and one which does not support it. The only downside of this is that your video needs to be encoded in either the h.264 codec (mp4) or Theora codec (ogv).<\/p>\n<div class=\"tweetmeme_button\" style=\"float: left; margin-right: 10px;\"><a href=\"http:\/\/api.tweetmeme.com\/share?url=http%3A%2F%2Ftechie-buzz.com%2Ffeatured%2Fhtml5-video-tag-support-for-all-browsers.html\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/api.tweetmeme.com\/imagebutton.gif?url=http%3A%2F%2Ftechie-buzz.com%2Ffeatured%2Fhtml5-video-tag-support-for-all-browsers.html\" height=\"61\" width=\"51\" \/><\/a><\/div>\n<div style=\"font-size:12px\">\n<strong>Share:<\/strong><br \/>\n<a href=\"http:\/\/techie-buzz.com\/featured\/html5-video-tag-support-for-all-browsers.html#commentrespond\" rel=\"bookmark\" >Comment on This Post<\/a> |<br \/>\n<a href=\"http:\/\/twitter.com\/home?source=techiebuzz&#038;status=HTML5%20&lt;video&gt;%20Tag%20Support%20For%20All%20Browsers%20http:\/\/techie-buzz.com\/featured\/html5-video-tag-support-for-all-browsers.html%20via%20@techiebuzzer\" rel=\"bookmark\" >Tweet This<\/a> |<br \/>\n<a href=\"http:\/\/www.facebook.com\/sharer.php?u=http:\/\/techie-buzz.com\/featured\/html5-video-tag-support-for-all-browsers.html\" rel=\"bookmark\" >Share on Facebook<\/a> |<br \/>\n<a href=\"http:\/\/del.icio.us\/post?url=http:\/\/techie-buzz.com\/featured\/html5-video-tag-support-for-all-browsers.html&#038;title=HTML5%20&lt;video&gt;%20Tag%20Support%20For%20All%20Browsers\" rel=\"bookmark\" >Save to Delicious<\/a> |<br \/>\n<a href=\"http:\/\/www.stumbleupon.com\/submit?url=http:\/\/techie-buzz.com\/featured\/html5-video-tag-support-for-all-browsers.html\" rel=\"bookmark\" >Stumble This<\/a> |<br \/>\n<a href=\"http:\/\/digg.com\/submit?phase=2&#038;url=http:\/\/techie-buzz.com\/featured\/html5-video-tag-support-for-all-browsers.html&#038;title=HTML5%20&lt;video&gt;%20Tag%20Support%20For%20All%20Browsers\" rel=\"bookmark\" >Digg This<\/a> |<br \/>\n<a href=\"http:\/\/www.reddit.com\/submit?url=http:\/\/techie-buzz.com\/featured\/html5-video-tag-support-for-all-browsers.html&#038;title=HTML5%20&lt;video&gt;%20Tag%20Support%20For%20All%20Browsers\" rel=\"bookmark\" >Reddit This<\/a>\n<\/div>\n<div><strong style=\"font-size:11px;\">TAGS:<\/strong> <span style=\"text-transform:uppercase;font-size:11px;\"><a href=\"http:\/\/techie-buzz.com\/tag\/developer-tools\" rel=\"tag\">Developer Tools<\/a>, <a href=\"http:\/\/techie-buzz.com\/tag\/html5\" rel=\"tag\">HTML5<\/a>, <a href=\"http:\/\/techie-buzz.com\/tag\/html5-video\" rel=\"tag\">HTML5 Video<\/a>, <a href=\"http:\/\/techie-buzz.com\/tag\/javascript\" rel=\"tag\">JavaScript<\/a>, <a href=\"http:\/\/techie-buzz.com\/tag\/libraries\" rel=\"tag\">Libraries<\/a><\/span><br \/>\n<\/small><\/div>\n<div style=\"background:#E1E1E1; border: dotted 1px; padding:5px; margin-top:5px;font-size:11px\">\n<a href=\"http:\/\/techie-buzz.com\/featured\/html5-video-tag-support-for-all-browsers.html\" title=\"HTML5 &lt;video&gt; Tag Support For All Browsers\">HTML5 &lt;video&gt; Tag Support For All Browsers<\/a> originally appeared on <a href=\"http:\/\/techie-buzz.com\" title=\"Techie Buzz\">Techie Buzz<\/a> written by Keith Dsouza on Monday 1st March 2010 09:39:28 PM. Please read the <a href=\"http:\/\/techie-buzz.com\/terms-of-use\">Terms of Use<\/a> for fair usage guidance. <\/div>\n<p><\/p>\n<h2>Don&#8217;t miss these Related Posts:<\/h2>\n<ul>\n<li><a href=\"http:\/\/techie-buzz.com\/tech-news\/youtube-and-vimeo-support-html5-videos-goodbye-flash.html??rel=rss_related&#038;utm_source=self&#038;utm_medium=web&#038;utm_campaign=rss_related\" rel=\"bookmark\" >YouTube and Vimeo Support HTML5 Videos, Goodbye Flash<\/a><\/li>\n<li><a href=\"http:\/\/techie-buzz.com\/opera\/opera-html5-video-element-10-5-pre-alpha-linux.html??rel=rss_related&#038;utm_source=self&#038;utm_medium=web&#038;utm_campaign=rss_related\" rel=\"bookmark\" >Opera Adds Support for HTML5 Video Element: New 10.5 Pre-Alpha Build<\/a><\/li>\n<li><a href=\"http:\/\/techie-buzz.com\/softwares\/play-html5-videos-in-internet-explorer.html??rel=rss_related&#038;utm_source=self&#038;utm_medium=web&#038;utm_campaign=rss_related\" rel=\"bookmark\" >Play HTML5 Videos in Internet Explorer<\/a><\/li>\n<li><a href=\"http:\/\/techie-buzz.com\/development-tools\/html5-visual-cheat-sheet.html??rel=rss_related&#038;utm_source=self&#038;utm_medium=web&#038;utm_campaign=rss_related\" rel=\"bookmark\" >HTML5 Visual Cheat Sheet<\/a><\/li>\n<li><a href=\"http:\/\/techie-buzz.com\/tech-news\/zoho-kills-gears-adopts-html5.html??rel=rss_related&#038;utm_source=self&#038;utm_medium=web&#038;utm_campaign=rss_related\" rel=\"bookmark\" >Zoho Adopting HTML5, Gears Is Going To RIP Soon<\/a><\/li>\n<\/ul>\n<h2>Join Techie Buzz on Your Favorite Social Networking Sites<\/h2>\n<ul>\n<li><a href=\"http:\/\/go.techie-buzz.com\/facebookfanrss\" title=\"Become a Techie Buzz fan on Facebook\">Become a Techie Buzz fan on Facebook<\/a><\/li>\n<li><a href=\"http:\/\/go.techie-buzz.com\/twitterrss\" title=\"Follow Techie Buzz on Twitter\">Follow Techie Buzz on Twitter<\/a><\/li>\n<\/ul>\n<p><a href=\"http:\/\/feedads.g.doubleclick.net\/~a\/lXYEonmP74fdUPhsciKnVDpt7Gg\/0\/da\"><img decoding=\"async\" src=\"http:\/\/feedads.g.doubleclick.net\/~a\/lXYEonmP74fdUPhsciKnVDpt7Gg\/0\/di\" border=\"0\" ismap=\"true\"><\/img><\/a><br \/>\n<a href=\"http:\/\/feedads.g.doubleclick.net\/~a\/lXYEonmP74fdUPhsciKnVDpt7Gg\/1\/da\"><img decoding=\"async\" src=\"http:\/\/feedads.g.doubleclick.net\/~a\/lXYEonmP74fdUPhsciKnVDpt7Gg\/1\/di\" border=\"0\" ismap=\"true\"><\/img><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/feeds.feedburner.com\/~r\/techiebuzz\/~4\/AM4ZXFrHYRc\" height=\"1\" width=\"1\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML5 Videos is a very big feature which will render Flash videos almost useless, however not every browser supports HTML5 yet, the few that do also are either development versions or beta versions. So, as a developer how would you switch to HTML videos? Well, there is a way by using a new JavaScript API [&hellip;]<\/p>\n","protected":false},"author":1632,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-377762","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/377762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/users\/1632"}],"replies":[{"embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/comments?post=377762"}],"version-history":[{"count":0,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/posts\/377762\/revisions"}],"wp:attachment":[{"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/media?parent=377762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/categories?post=377762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mereja.media\/index\/wp-json\/wp\/v2\/tags?post=377762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}