auto play video?
-
My gallery videos don’t auto play and I can’t find any settings for it. Is it possible to make them auto play?
-
This topic was modified 3 years ago by
t1g3rn00n.
-
This topic was modified 3 years ago by
-
Hello, dear t1g3rn00n.
Please, can you tell me what type of gallery you are using? Are you using YouTube or Vimeo?
We are always happy to hear from you and solve all problems. We will develop the plugin with you. For us, the most important thing is that the plugin should be used by the developers themselves.
Thanks for the good suggestion.
Have a good day!
Hi, I’m using self hosted MP4 videos and Classic gallery, but it doesn’t matter. The same thing happens with other galleries and YouTube /vimeo, videos don’t auto play. You click the video thumbnail, it opens the lightbox popup, then you have to click again on the popup to start the video. The video should auto play after the first click, that should be the default behavior.
-
This reply was modified 3 years ago by
t1g3rn00n.
Hello, dear t1g3rn00n
Thank you for contacting us and reporting your problem.
Edit our gallery file public\popup_partials\tsvg-cl-video-gallery_popup.php. Find code in line 313-324.
if (iframesource.indexOf(‘youtube.com/embed/’) > -1) {
isvideotf = ‘true’;
}
else if (iframesource.indexOf(‘player.vimeo.com/video/’) > -1) {
isvideotf = ‘true’;
}
else if (iframesource.indexOf(‘.mp4’) > -1) {
isvideotf = ‘true’;
}
else if (iframesource.indexOf(‘fast.wistia.net/embed/iframe/’) > -1) {
isvideotf = ‘true’;
}Please edit the code and write like this.
if (iframesource.indexOf('youtube.com/embed/') > -1) { isvideotf = 'true'; iframesource = iframesource + '?autoplay=1&mute=1'; } else if (iframesource.indexOf('player.vimeo.com/video/') > -1) { isvideotf = 'true'; iframesource = iframesource + '?autoplay=1&loop=1&autopause=0'; } else if (iframesource.indexOf('.mp4') > -1) { isvideotf = 'true'; } else if (iframesource.indexOf('fast.wistia.net/embed/iframe/') > -1) { isvideotf = 'true'; iframesource = iframesource + '?wvideo=hashedid'; }Everything needs to be changed. After that save the gallery file.
In version 1.9.5 autoplay will be added as a feature. Will be available on all gallery themes.
We are always happy to hear from you and solve all problems. We will develop the plugin with you. For us, the most important thing is that the plugin should be used by the developers themselves.
Have a good day!
Thank you for the updates. I replaced those codes with the new ones, it still didn’t work. I’ve tried both MP4 and Youtube video, neither auto play after first click. Any ideas why?
-
This reply was modified 3 years ago by
The topic ‘auto play video?’ is closed to new replies.