Wordpress YT-Video Embed with Autoplay & Loop

JackTheBlack

Regular Member
Joined
Nov 14, 2018
Messages
351
Reaction score
76
Guys I hope you can help me. I've already tried 8+ hours on this and it is driving me mad.

I have this youtube video I want to display on my page. It is very short (10 seconds).

On my WP blog post I want this video to automatically start playing and loop when finished.

So far I tried to use the default embed function of WP. Unfortunately this one isn't able to loop the video.

So I tried using iFrame. I used following code:

Code:
<iframe src="https://www.youtube.com/embed/vidID?autoplay=1&loop=1&modestbranding=1&playlist=vidID" width="620" height="300" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

It works however you can't get an Iframe to become responsive. RIP mobile users.

Do you guys have any other ideas or recommendations?
 
Back
Top