{"id":195,"date":"2016-08-13T07:34:11","date_gmt":"2016-08-13T07:34:11","guid":{"rendered":"https:\/\/html5box.com\/blog\/?p=195"},"modified":"2016-08-13T07:37:31","modified_gmt":"2016-08-13T07:37:31","slug":"use-native-video-controls-in-lightbox-popup","status":"publish","type":"post","link":"https:\/\/html5box.com\/blog\/html5-lightbox\/use-native-video-controls-in-lightbox-popup\/","title":{"rendered":"Use native video controls in Lightbox popup"},"content":{"rendered":"<p><strong>Product<\/strong>:<\/p>\n<p><a href=\"http:\/\/html5box.com\/html5lightbox\/index.php\" target=\"_blank\">HTML5 Lightbox<\/a><\/p>\n<p><strong>Question<\/strong>:<\/p>\n<p>When opening an mp4 video in Lightbox popup, is there a way to use the native video controls for each web browser? <\/p>\n<p><!--more--><\/p>\n<p><strong>Answer<\/strong>:<\/p>\n<p>Yes. You can add a data tag <code style=\"color:#ff0000;font-style:italic;\">data-nativehtml5controls=\"true\"<\/code> to the html5lightbox link, for example:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;a href=&quot;https:\/\/html5box.com\/html5lightbox\/images\/Big_Buck_Bunny_1.m4v&quot; data-webm=&quot;https:\/\/html5box.com\/html5lightbox\/images\/Big_Buck_Bunny_1.webm&quot; class=&quot;html5lightbox&quot; data-nativehtml5controls=&quot;true&quot; &gt;HTML5 Video Lightbox&lt;\/a&gt;&lt;\/div&gt;\r\n<\/pre>\n<p>A demo is as following:<\/p>\n<p><a href=\"https:\/\/html5box.com\/html5lightbox\/images\/Big_Buck_Bunny_1.m4v\" data-webm=\"https:\/\/html5box.com\/html5lightbox\/images\/Big_Buck_Bunny_1.webm\" class=\"html5lightbox\" data-nativehtml5controls=\"true\" >HTML5 Video Lightbox<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Product: HTML5 Lightbox Question: When opening an mp4 video in Lightbox popup, is there a way to use the native video controls for each web browser?<\/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-195","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\/195","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=195"}],"version-history":[{"count":7,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/195\/revisions"}],"predecessor-version":[{"id":202,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/195\/revisions\/202"}],"wp:attachment":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/media?parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/categories?post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/tags?post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}