{"id":107,"date":"2014-06-09T23:30:23","date_gmt":"2014-06-09T23:30:23","guid":{"rendered":"http:\/\/html5box.com\/blog\/?p=107"},"modified":"2014-06-09T23:30:23","modified_gmt":"2014-06-09T23:30:23","slug":"disable-video-auto-play","status":"publish","type":"post","link":"https:\/\/html5box.com\/blog\/jquery-video-gallery\/disable-video-auto-play\/","title":{"rendered":"Disable video auto play"},"content":{"rendered":"<p><strong>Question<\/strong>:<\/p>\n<p>I am interested in using HTML5 Gallery on our new website (currently planned).<\/p>\n<p>I have a question however.<\/p>\n<p>We want the video files show the Vimeo player and not auto play when they load. Currently this seems to be set in the Javascript (via the autoplay=1 command).<\/p>\n<p>If we purchase a commercial version on HTML5 Gallery are we able to change the Javascript to set the autoplay=0 instead or is there a data command to stop this? It seems that the thumbnails trigger auto play all the time.<\/p>\n<p><strong>Answer<\/strong>:<\/p>\n<p>You can add the following data tags:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\ndata-autoplayvideo=&quot;false&quot;  data-playvideoonclick=&quot;false&quot;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Question: I am interested in using HTML5 Gallery on our new website (currently planned). I have a question however. We want the video files show the Vimeo player and not auto play when they load. Currently this seems to be set in the Javascript (via the autoplay=1 command). If we purchase a commercial version on &hellip; <a href=\"https:\/\/html5box.com\/blog\/jquery-video-gallery\/disable-video-auto-play\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Disable video auto play<\/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":[6],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-jquery-video-gallery"],"_links":{"self":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/107","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=107"}],"version-history":[{"count":1,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":108,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/posts\/107\/revisions\/108"}],"wp:attachment":[{"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5box.com\/blog\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}