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

Issue with Youtube API V3 with special characters in youtube URL

$
0
0

I am new to this youtube API.I tried using different kinds of youtube URLs but the only one that is bugging me is the one containing special characters (/, _ etc) like- https://www.youtube.com/watch?v=kXYiU_JCYtU.When i try to embed this url in iFrame, getting this issue.

error image

This is the embed code i took from google to show it in the page<iframe src="https://www.youtube.com/embed/kXYiU_JCYtU" title="CASTLE OF GLASS [Official Music Video] - Linkin Park" allow='autoplay'> </iframe>

I tried adding few iFrame properties but still no luck.

<iframe src='https://www.youtube.com/embed/kXYiU_JCYtU' title='CASTLE OF GLASS [Official Music Video] - Linkin Park' allow='autoplay; encrypted-media' referrerpolicy="no-referrer-when-downgrade" sandbox="allow-same-origin allow-scripts" rel="noopener external"> </iframe>

I want the iFrame to display the videos just like they are visible in youtube.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



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