WordPress.org

Forums

[resolved] Video won't autoplay (4 posts)

  1. justlearninghelp
    Member
    Posted 1 year ago #

    I had a video posted on the home page that autoplayed when the page opened. This video rotates and therefore gets changed sometimes. New videos won;t auto play.

    Original video
    <iframe width="560" height="315" src="//www.youtube.com/embed/2oEWVsXHZVc?autoplay=1" frameborder="0" allowfullscreen></iframe>

    New Video
    <iframe width="560" height="315" src="//www.youtube.com/embed/3KH-9qOePk4?list=PLWKbTlsNIef6F2RNMcXQFNuZNgS_Ys89O autoplay=1" frameborder="0" allowfullscreen></iframe>

    I tried changing the "1" to "Y" "ON" but to no avail

    ANyone have any suggestions?

    thanks!

  2. ClaytonJames
    Member
    Posted 1 year ago #

    I think it's just a minor syntax error after the playlist. Try this and see if it works.

    <iframe width="560" height="315" src="//www.youtube.com/embed/3KH-9qOePk4?list=PLWKbTlsNIef6F2RNMcXQFNuZNgS_Ys89O&autoplay=1" frameborder="0" allowfullscreen></iframe>

    Note the ampersand before the autoplay parameter...

    list=PLWKbTlsNIef6F2RNMcXQFNuZNgS_Ys89O&autoplay=1"

  3. justlearninghelp
    Member
    Posted 1 year ago #

    Thank you so much!
    Worked like a charm- I really appreciate it!

  4. ClaytonJames
    Member
    Posted 1 year ago #

    You're welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.