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
Page 1 / 1
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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.