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.
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.