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

Embedded Youtube link refused to connect

  • Apr 29, 2019 10:13 AM UTC
  • 1 reply
  • 196 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 ●●●●●●●●
  • Apr 21, 2023 5:20 AM UTC

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>