On November 13th, I got a call from a customer reporting that the YouTube player didn't work anymore. After a quick look in the dev tool, I found that there was an error:
Uncaught TypeError: a.getVideoData is not a function
Looking into what the player object was containing, I learned that there's no function getVideoData
anymore.
The function getVideoData
provided a way to get the video title. Now, how can I get the title?
Is there any article from Google about this change?
getVideoData()
function ever listed in there at all. Could this have been functionality that was never officially supported? Regardless, I agree with you that it would have been nice to know in advance that it was being removed. I've spent all day fixing my live implementations of this API. – StaubgetDuration()
,getAvailableQualityLevels()
etc. Does anyone have a clue about this? These methods are documented on API's page then too they are not working. – VerongetVideoData
appears to still be working for me again since it began working again yesterday. I don't use it on my site, but just tried callinggetAvailableQualityLevels()
from the console and it seemed to work fine: n.getAvailableQualityLevels() (7) ["hd1080", "hd720", "large", "medium", "small", "tiny", "auto"]. Are you seeing "not a function" errors or something else? – CreedgetVideoData
before others which was causing the issue...I hopegetVideoData
starts working again... – VerongetVideoData()
, it is working currently. Are you not seeing it? – CreedgetVideoUrl
method. So, it's better to avoid usinggetVideoData
if not necessary... – Veron