jewfro
jewfro

Reputation: 253

can't stop autoplay on youtube embedded videos in slider

There is plenty of information on this and the fix of setting autoplay or autostart to false seems simple.

Only it doesn't work for me at all, have tried every combination can think of.

I am embedding video in layer slider slide in wordpress and the video playing is stopping slide from transition to the next one.

Any help would be appreciated.

Below are some examples of various ways I've tried to make it work. It is the same issue on chrome as on safari, and mobile

<iframe width="560" height="315" src="https://www.youtube.com/embed/PhCLPGg2WOM?autoplay=0” frameborder="0" allowfullscreen=“></iframe>

<iframe width="560" height="315" src="https://www.youtube.com/embed/PhCLPGg2WOM?autoplay=false" type="audio/mpeg" frameborder="0" allowfullscreen></iframe>

<iframe width="560" height="315" src="https://www.youtube.com/embed/tUJJv0EZSuI" frameborder="0" allowfullscreen autoplay="0" autostart="0" type="audio/mpeg"></iframe>

Upvotes: 4

Views: 3622

Answers (5)

Lakindu Gunasekara
Lakindu Gunasekara

Reputation: 4271

Go to slider settings, and turn off the autoplay mode under "Video" section. since it is not working on the code it self. Check the link given below, will be useful.

https://wordpress.org/support/topic/stopping-autoplay-on-iframe-videos/

Upvotes: 1

Anfas Mujeeb
Anfas Mujeeb

Reputation: 1

Remove autoplay=0 and try it out in your embed url at the end there is autoplay=0 or other numbers remove it and try it out

Upvotes: 0

Prakash Rao
Prakash Rao

Reputation: 2398

Edit the slider then go to Global Settings. Go to Slideshow panel and turn off “Automatically play videos” option.

Upvotes: 0

v-stackOverFollower
v-stackOverFollower

Reputation: 595

The Layer Slider plugin has its own slider settings for each slider. Go to the Slider Settings > videos, and under videos tab turn off the Automatically play videos options.

Upvotes: 0

Hunter
Hunter

Reputation: 221

I have done some research on your problem, however I don't personally have a WordPress premium account of which I can test. So, what I do know is that your disable auto-play code does work on Chrome in a normal HTML setting. I found this link that might help:

https://www.youtube.com/watch?v=26QOdyxeYfY

However, it looks like you might have already tried that solution. I have also found another link (http://www.kriesi.at/support/topic/layerslider-youtube-video-autoplay-issue/) that says that the LayerSlider plugin has its own auto play settings under Slider Settings>video.

I hope this helps!

Upvotes: 0

Related Questions