Skip to content
Advertisement

Tag: youtube-api

onYouTubeIframeAPIReady function is not calling

I want to call onYouTubeIframeAPIReady function but this is not firing. I am getting only frameID in console but other functions are not getting called. Answer Your onYouTubeIframeAPIReady() function must be defined globaly. Simply replace the line with It is also important to load the youtube iframe api library file: Also your iframe src url must have appended the enablejsapi=1

Access variables and functions defined in page context using a content script

I’m learning how to create Chrome extensions. I just started developing one to catch YouTube events. I want to use it with YouTube flash player (later I will try to make it compatible with HTML5). manifest.json: myScript.js: The problem is that the console gives me the “Started!”, but there is no “State Changed!” when I play/pause YouTube videos. When this

Advertisement