{"id":155,"date":"2014-08-18T09:30:40","date_gmt":"2014-08-18T09:30:40","guid":{"rendered":"http:\/\/html5box.com\/blog\/?p=155"},"modified":"2014-08-18T09:34:29","modified_gmt":"2014-08-18T09:34:29","slug":"play-webm-video-in-lightbox-under-firefox","status":"publish","type":"post","link":"https:\/\/html5box.com\/blog\/html5-lightbox\/play-webm-video-in-lightbox-under-firefox\/","title":{"rendered":"Play WebM video in Lightbox under Firefox"},"content":{"rendered":"<p><strong>Question<\/strong>:<\/p>\n<p>Firefox does not support the mp4 video file format. How do I add support for the webm video file format?<\/p>\n<p>Answer:<\/p>\n<p>You can use data tag data-webm to specify a webm video for Firefox. For example:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;a href=&quot;images\/Big_Buck_Bunny_2.mp4&quot; data-webm=&quot;images\/Big_Buck_Bunny_2.webm&quot; class=&quot;html5lightbox&quot; &gt;Video&lt;\/a&gt;\r\n<\/pre>\n<p>If the data-webm is not specified, the Lightbox plugin will use Flash to play mp4 on Firefox, so it will still work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question: Firefox does not support the mp4 video file format. How do I add support for the webm video file format? Answer: You can use data tag data-webm to specify a webm video for Firefox. For example: &lt;a href=&quot;images\/Big_Buck_Bunny_2.mp4&quot; data-webm=&quot;images\/Big_Buck_Bunny_2.webm&quot; class=&quot;html5lightbox&quot; &gt;Video&lt;\/a&gt; If the data-webm is not specified, the Lightbox plugin will use Flash to &hellip; <a href=\"https:\/\/html5box.com\/blog\/html5-lightbox\/play-webm-video-in-lightbox-under-firefox\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Play WebM video in Lightbox under Firefox<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,12],"tags":[],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-html5-lightbox","category-html5-video-lightbox"],"_links":{"self":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":2,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"predecessor-version":[{"id":160,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/155\/revisions\/160"}],"wp:attachment":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}