Embedded Youtube link refused to connect | XM Community
Question

Embedded Youtube link refused to connect

  • 29 April 2019
  • 1 reply
  • 75 views

Badge +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

Userlevel 6
Badge +27

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>

 

Leave a Reply