YouTube iframe API: can't make it responsive
问题 I'm trying to implement a Youtube video via the iFrame API. I need to catch some events so embedding the player alone is not an option. Everything is working fine as explained in the docs, I'm calling the video like this: var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); var player; function onYouTubeIframeAPIReady() { if($("