How do I do an auto play on a video when the page

How do I do an auto play on a video when the page is opened?
My video is streamed from Sprout, but I would like it to auto start and don't find anything on Sprout's website to do that. Is there either a plug in or code that I can use?
I am using a responsive wordpress theme.

  • Milan

    Hello Shirley,

    I hope you are having a good day and thanks for asking us. :slight_smile:

    You will need to append this query string parameter in src attribute of your iframe code snippet.

    ?autoplay=true

    Your video's sharing iframe snippet will be something like this,

    <iframe class='sproutvideo-player' src='//videos.sproutvideo.com/embed/189bdeb21a15e9c390/0228809740ff7123' width='630' height='515' frameborder='0' allowfullscreen></iframe>

    Now to autoplay video when page loads you only need to append src attribute's value with "autoplay" parameter this way,

    <iframe class='sproutvideo-player' src='//videos.sproutvideo.com/embed/189bdeb21a15e9c390/0228809740ff7123?autoplay=true' width='630' height='515' frameborder='0' allowfullscreen></iframe>

    Hope this helps you

    Cheers,
    Milan

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.