Video/audio files set to autoplay begin playing as soon as form as loaded

  • JackCastronovo
    Asked on October 4, 2015 at 12:04 PM

    Hi,

     

    I never got a response to my exact question that I posted a month ago, so here it goes again. Perhaps I can be a little clearer now.

     

    I've embedded Soundcloud files using iframe. They work fine when I set the script to autoplay=false, but on certain files, I set it to autoplay=true. The problem is that the autoplay files begin playing as soon as the form is accessed and not when the user reaches the page that they're embedded. So, if I have the autoplay file on page 7, it doesn't wait until the user reaches page 7 to play. It just starts playing as soon as the user hits the first page. Is there any way to make this work?  Here's the code:

     

    <p><iframe src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/222598509%3Fsecret_token%3Ds-iaC9H&amp;auto_play=true&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true" width="100%" height="450" frameborder="no" scrolling="no"></iframe></p>

    Thanks,

     

    Jack

     

  • Ashwin JotForm Support
    Replied on October 5, 2015 at 1:27 AM

    Hello Jack,

    You seems to be have embedded your SoundCloud audio iFrame embed code in "Text" field. You may also like to check our "SoundCloud" widget as well.

    That is because the audio is set to auto play as soon as the page is loaded. Please be noted that even if you have page break in form, entire page/form is loaded and page break is merely showing/hiding the sections of page.

    Let me try to find out if there is any workaround available. I will get back to you if I am able to find any workaround.

    Thank you!