Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

why my iframe tag not working properly with youtube api?

$
0
0

when i give variables in the src attribute like this

<iframe width="560" height="315" src={urlHead+url} title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

instead of coding like this src attribute

<iframe width="560" height="315" src="https://www.youtube.com/embed/qFJeN9V1ZsI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

i have my youtube links in splitted way . i want to use them in my src attribute but it not working properly.it displays this

An error occurred. Please try again later. (Playback ID: wCrWdUVnceGSB5lI)Learn More


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>