• Resolved JoMichaels

    (@jomichaels)


    I’m trying to use a you tube video on my site. I want it to auto play and loop. I would also like to remove the “borders or menu” look around the video.

    Here’s my code
    <iframe src=”//www.youtube.com/embed/0FPTazhPnQo?list=UUIuF03ZnGUS2QwSsUA9pCLw” allowfullscreen=”” autoplay=”yes” parameters=”loop=1″ frameborder=”0″ height=”416″ width=”740″></iframe>

    Please help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Parameters to YouTube are passed as part of the URL address. Each parameter name is separated by an ampersand and each value is proceeded by an equal sign.

    For example, try this instead of the code you posted:
    <iframe src="//www.youtube.com/embed/0FPTazhPnQo?list=UUIuF03ZnGUS2QwSsUA9pCLw&loop=1&autoplay=1" frameborder="0" height="416" width="740"></iframe>

    Notice how I wrote &loop=1&autoplay=1 to tell YouTube the video will loop and autoplay?

    Now, the frameborder, height and width are different. Those are html attributes for the browser to understand how big the video will be on the site. They are not parameters being passed to YouTube. I’ll mention, too, that the frameborder attribute is deprecated in HTML5.

    For a complete list of the parameters that can be passed to YouTube, please review: https://developers.google.com/youtube/player_parameters For the menu, I believe you want to look at the autohide parameter.

    Oh, and I had no idea strawberries have their seeds on the outside. Looks like I learned something today. 🙂

    Thread Starter JoMichaels

    (@jomichaels)

    thank you so much Chris for the explanation and help. Exactly what I needed and I’m so glad you were able to learn something too (about strawberries) 🙂

    Appreciate it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘You Tube looping, autoplay, customization’ is closed to new replies.