WPIntell

Source evidence

Autoplay for video?

blueimp lightbox · support · 2014-05-02T03:36:00+00:00

complaintsentiment
mediumseverity
0.8relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 25 rows with source links

24.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
RobThomas unresolved
Is there an autoplay setting so when a user clicks on the link, they don’t have to click play in the Lightbox? Thanks! https://wordpress.org/plugins/blueimp-lightbox/ There is no setting, but you can try adding the following jQuery snippet: $('#blueimp-gallery').on('slidecomplete', function (event, index, slide) { var video; if ($(this).data('gallery').index === index) { video = $(slide).find('video').get(0); if (video) { video.play(); } } }); I also wanted the same. Tried adding the code in the template file but not working as yet so please do let me know about it. Thanks. My code snippet above will only work for custom HTML5 videos. For YouTube/Vimeo you can enable the clickToPlay options by editing the Gallery template and adding the following attributes: <div id="blueimp-gallery" class="blueimp-gallery" data-you-tube-click-to-play="false" data-vimeo-click-to-play="false"> ... </div> https://github.com/blueimp/Gallery#youtube-options Hi, Thanks for your reply. Actually I meant the auto play directly rather than the circular play button which comes up first when we select a link. I have already done autoplay for vimeo. Thanks. Hi, The youTubeClickToPlay option removes one less click. After clicking on a link, the lightbox appears with the video screenshot and a circular video button. How can we remove this step? Basically I want to click on my link and the lightbox appears with the video playing automatically. One click > lightbox appears > video plays. Is this possible?

Comments

5 shown
blueimp 2014-05-03T10:02:00+00:00

There is no setting, but you can try adding the following jQuery snippet: $('#blueimp-gallery').on('slidecomplete', function (event, index, slide) { var video; if ($(this).data('gallery').index === index) { video = $(slide).find('video').get(0); if (video) { video.play(); } } });

godrej 2014-06-03T10:40:00+00:00

I also wanted the same. Tried adding the code in the template file but not working as yet so please do let me know about it. Thanks.

blueimp 2014-06-05T17:55:00+00:00

My code snippet above will only work for custom HTML5 videos. For YouTube/Vimeo you can enable the clickToPlay options by editing the Gallery template and adding the following attributes: <div id="blueimp-gallery" class="blueimp-gallery" data-you-tube-click-to-play="false" data-vimeo-click-to-play="false"> ... </div> https://github.com/blueimp/Gallery#youtube-options

godrej 2014-06-18T12:08:00+00:00

Hi, Thanks for your reply. Actually I meant the auto play directly rather than the circular play button which comes up first when we select a link. I have already done autoplay for vimeo. Thanks.

pathetix 2014-07-31T13:23:00+00:00

Hi, The youTubeClickToPlay option removes one less click. After clicking on a link, the lightbox appears with the video screenshot and a circular video button. How can we remove this step? Basically I want to click on my link and the lightbox appears with the video playing automatically. One click > lightbox appears > video plays. Is this possible?