Disable VideoAsk Response autoplay | Community
Skip to main content
Answered

Disable VideoAsk Response autoplay

  • September 22, 2022
  • 5 replies
  • 188 views

Dominic
Forum|alt.badge.img

We’re embedding response videos into our app and our users have shared that the autoplay functionality is distracting. To be clear, the audio is not playing, but the video plays without sounds as soon as you load the page. We tried removing the autoplay attribute from the iframe code, and when we did that we occasionally see an issue with the play button not appearing at all, so I’m wondering if there’s a better way to display the video thumbnail instead of the video itself until the user clicks on the video.

Example embed:

<iframe
        title="Shared video"
        src={url}
        allow="encrypted-media *; fullscreen *;"
        className="w-full rounded-md aspect-video"
      />

Example page: https://app.dev.learnexusdev.com/talent-profile/5146

Loom demonstrating the missing play button: 

https://www.loom.com/share/6d658e3dbeb9409fa4e737a1cf5cabae

 

Best answer by Grace

Hey @Dominic thanks for stopping by!

If you head to Advanced Settings in the builder of your videoask you should find the Pause auto-play toggle which you can switch on if you don’t want the video playing automatically.

 

 

Hopefully that resolves it, but let me know if you have any other questions 😊

View original

5 replies

Grace
Community Team
Forum|alt.badge.img+5
  • Community Advocate
  • 2628 replies
  • Answer
  • September 23, 2022

Hey @Dominic thanks for stopping by!

If you head to Advanced Settings in the builder of your videoask you should find the Pause auto-play toggle which you can switch on if you don’t want the video playing automatically.

 

 

Hopefully that resolves it, but let me know if you have any other questions 😊


Dominic
Forum|alt.badge.img
  • Author
  • Explorer
  • 5 replies
  • September 23, 2022

Thanks, Grace. Does that apply to the responses as well or just the prompt/question?


Grace
Community Team
Forum|alt.badge.img+5
  • Community Advocate
  • 2628 replies
  • September 23, 2022

Hey @Dominic I believe it will only work on the videoask itself, I think if you’re embedding responses it can take a bit of fiddling to get a ?pauseautoplay parameter to work 😅


Dominic
Forum|alt.badge.img
  • Author
  • Explorer
  • 5 replies
  • October 5, 2022

Just to close the loop, we ended up writing a little bit of javascript to show the static thumbnail by default with a play button super-imposed. When a user clicks the play button we replace the contents of the div with the video itself.


Grace
Community Team
Forum|alt.badge.img+5
  • Community Advocate
  • 2628 replies
  • October 6, 2022

Hey @Dominic thanks so much for sharing this! Is the page live? Just wondering if we could see it in action? Sounds like a good solution! 😊


Reply