Embedded Youtube link refused to connect | XM Community
Skip to main content
Question

Embedded Youtube link refused to connect

  • April 29, 2019
  • 1 reply
  • 150 views

Forum|alt.badge.img+2
Hello! I'm trying to build a survey which requires to show a video ad to survey takers. We have used java script to include the video. Upon testing, there's an error prompted in our link saying that youtube refused to connect. Anyone knew or encountered about this error? Here's our Javascript for the video: <div class='video-container'><iframe width='560' height='315' src='https://www.youtube.com/embed/TfNHXttwPys?modestbranding=1&rel=0&controls=0mode=opaque&rel=0&autohide=1&showinfo=0&wmode=transparent' frameborder='0' allow='autoplay; encrypted-media' allowfullscreen></iframe></d

1 reply

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • April 21, 2023

It does take time to load the video, but the below code works for me

<div class='video-container'><iframe width='560' height='315' src='https://www.youtube.com/embed/TfNHXttwPys?modestbranding=1&rel=0&controls=0mode=opaque&rel=0&autohide=1&showinfo=0&wmode=transparent' frameborder='0' allow='autoplay; encrypted-media' allowfullscreen></iframe></div>