YouTube iframe API playVideo() stopped working - youtube

Is anybody else having issues with the YouTube APIs at the moment? About 2.5hrs ago I had reports from two different clients that their playback on sites had stopped working. They all appear to be functioning correctly on the website side of things but the returned YT.player object has no playVideo() method and never fires onReady. No code has changed on either of these things for months.
A URL you can view the problem on is here (though the scripts are minified) - http://brisbanepowerhouse.org/videos/the-removalists-david-williamson-interview/
You could also try the first video on this page (unminified) - http://thenewdaily.com.au/videos/?author_name=susannah-guthrie - but it is pretty regularly updated with content and there is no guarantee that it will still be a YouTube video at #1 by the time someone looks (the site also uses Vimeo embeds)
cheers!

Related

There is no GTM.video in GTM Preview Mode

As Google Tag Manager released the new update for built in variables for Youtube, I followed this tutorial of Simo Ahava for Youtube tracking: https://www.simoahava.com/analytics/the-youtube-video-trigger-in-google-tag-manager/
However, when I test my website in Preview mode, there is no gtm.video data layer. Because of that, there is no tag firing.
Any help will be appreciated, and if you believe my website has this video embedded code hidden, here is my page with video: https://www.magestore.com/magento-store-manager
Thank you!
Edited: Even if there is no gtm.video in Preview Mode, the tag actually still fires. You can check it in Real time mode of GA or wait until GA collects enough data.
We are having an issue with this functionality as well. We followed Simo's blog to implement and as of yesterday the functionality has become very unstable. We maybe have the tag firing 1 out of 20 page loads. We have tried loading the iframe_api as the first script. We have changed the ordering of the scripts. Something seems wrong with the code from Google.
I should also add that's it's not just the gtm.preview but if you publish the changes you will not see gtm.video firing with any regularity.
We think that GTM and YT API don't work well together - as per this post.
Google Tag Manager & Youtube Conflict

youtube api .getPlaylistIndex() no longer seems to work?

I have a web app that was built up using the youtube api v3 and for some reason now .getPlaylistIndex() is always returning -1 this just recently happened and caused a major break in the functionality of the site.
There was no changes in the code base to production over the last week and was working last week, but yesterday (or possibly Monday) it broke. There had to be some change within the API that caused these issues. But I was unable to see anything related to this issue posted anywhere...
If anyone has seen this issue and have some kind of link or reference to what was changed, if it is going to be fixed or if that function was deprecated? The only thing I can do at this point is rework all of my code to get around using this function anymore.
Any insight would be greatly appreciated, thanks.
This ended up an error in implementation that was in our code, but also because of a change in how things worked through the youtube api. The original coder had set up the youtube player to load the playlist, but then they loaded the start video again
channelPlayer.loadPlaylist(currentPlayListArray, selectedVidIdx);
//channelPlayer.loadVideoById(selectedVid); <<<< This was breaking functionality
channelPlayer.playVideo();
channelPlayer.setLoop(true);
channelPlayer.unMute();
This had been working (with the commented out line). Up until last weekend the playlist was not overwritten in the player by the loading of a single video. It seems the functionality has changed where it no longer loads the video ontop of a playlist that was previously loaded. Now it overwrites the playlist of the player instead of concatenating?
Again this was an internal error, but the random change in functionality in the api caused this to actually cause the issue we ran into.

jekyll/octopress embedded youtube videos caching issue

I have an octopress site http://irlnathan.github.io/sailscasts/ that embeds different screencasts from youtube. The correct video is displayed when the site is initially loaded, however, when a particular post is selected and one goes back from the browser all of the embedded videos point to the same single video.
I'm hosting the pages on github and I can't figure out why the pages are I think being cached in this way. Has anyone run into this problem?
I don't see the problem you described for your site.
But You might want to add <!--more--> before your videos so that videos are not shown in the blog list page. All these videos made the page loading a bit slow, which kinda defeat the purpose of using static page.

Youtube design change for iframe videos - full srceen button vanished

my colleauge and I created a website for a customer last month with several Youtube videos.
http://www.doepfner.de/filme.html
It worked very well and the customer was happy. Then I was 2 weeks on vacation. Now the design of the player has changed slightly. Biggest problem: the full screen button vanished. I tried to use the fs parameter to force it but nothing happend.
Can somebody tell me if it is possible to get the full screen button back or the other design?
This is most likely caused by you getting the HTML5 video player over Flash. This could have happened a couple ways. The most likely is you don't have Flash installed(or didn't at one point) and were opted into an experiment. You can opt out of the HTML5 experiment by going to http://www.youtube.com/html5. This will only effect your browser and not your users, but my guess is they're not having the same issues(assuming they have flash installed).
The other option is a bit of a hack(sort of). If you add webkitallowfullscreen and mozallowfullscreen as attributes to the iframe. This will allow the js fullscreen api to work in Firefox and Chrome. This api is not yet a finalized standard but should be soon.

Youtube player for multiple videos from various accounts

I have a page that has many videos on it and the page has become so slow it is unusable. These are all Youtube videos and I changed to the new iFrame tags hoping that would help the loading. I need a solution to make this page more useable.
I would be happy if I could just pull a frame from the video and display that, when clicked it would load the video. Or I would be happy with a multi-video player. The custom play from Youtube will not work because the videos I am serving are not all from my account and as I understand the custom player you reference a group from your account. I have also considered using AJAX to load the iframe, which would be okay too if I could figure out how to get a thumbnail of the video to show as a link.
Ideas and suggestions are welcome. Thanks in advance for any ideas.
YouTube API is made up of 2 different sets - one for the player and one for the data.
You can start here ...
http://code.google.com/apis/youtube/overview.html
... then click on "Data API" link and after looking over that page, click on the "Reference Guide" link.
In essence, the gData API will allow you to get videos in numerous ways (feeds, channels, tops, etc) in chunks of up to 100 videos at a time, using a startIndex (or whatever it may be called) option for paging. What you get is an XML document with parts or everything that YT has about a video, including not one but several different thumbnail images.
HTH helps you and/or another Web 0.2 Fellow (like me)

Resources