how to play youtube automatically

joshua425's Avatar


16 Jan, 2018 05:20 PM

Hi there,

I just want to know how to play youtube video automatically.

This discussion was closed! See this FAQ for more information:

  1. Creating play/pause button

    1. Initialize slider as usual (autoStart variable is self descriptive):

      var autoStart = true;
          // other options...
          autoPlay: {
              enabled: autoStart
    2. Add HTML code of button to your page, anywhere you wish.

      <button id="toggleAutoPlayBtn">Pause</button>
    3. After slider initialization, in document.ready() bind click event on button and call t...

    See more..
  1. joshua425 closed this discussion on 16 Jan, 2018 05:21 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac