in my code you can see , i can get any info expect image,can you explain me where is the wrong code How do I display the video Image of the search results using YouTube Search Results API? also in photo below you can see i get image info ,, but in code i cant show it Answer As I
Tag: youtube-api
Youtube API Playlist – List playlist stopped working
I have a strange issue on a system that creates a youtube playlist, and then fills the playlist with videos from a database table. The code is Version Controlled by GIT, and have no commits in the code for 3-4 months, and it has worked up to a couple of days back. Suddenly it can’t find the items, and therefore
Youtube API Uncaught (in promise) Error: Request failed with status code 403
I am attempting to integrate the YouTube API into a new Vuejs application and I am testing it in the browser and continuing to get a 404 error. I did have a www missing, but I continue to get this same error when I make the request. Is there something I am not seeing in my code that is wrong?
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
Load YouTube video and listen to onPlayerStateChange
On clicking a link, I’m trying to play a YouTube video and replace that video with an image when it’s done playing. The first half was easy. However I’m running into trouble with the second half. Originally I simply appended an iframe embed. However to listen to the ENDED event, I tried to follow the YouTube dev documentation. Now, I
Get callback in CoffeeScript with library
I am using the YouTube API to embed a video on a page. I call swfobject.embedSWF which embeds the video on the page, it works. When it is done loading, the API is supposed to call onYouTubePlayerReady. My question though is where do I have to place the callback in my class to get the function called? Here is the
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