Your Cart

Reply To: YouTube API v2 deprecated

These forums are now closed to new replies / tickets.

Please open a support ticket from our new Support page.

Front Page Forums Problems YouTube API v2 deprecated Reply To: YouTube API v2 deprecated

June 8, 2015 at 5:53 pm

Thanks @Steve, that also worked for me. I also wanted to show my
solution for thumbnails and images since something with the way
google sets up their objects in the API also changed. This makes
sure that if the video is hd that it will include the highest
resolution image in the viewer.

In the _video object:
get_thumb: function(data) {
return PROT + ‘//’’/default.jpg’; },
get_image: function(data) {
if ( data.items[0].contentDetails.definition === ‘hd’ ) { return
PROT + ‘//’’/maxresdefault.jpg’; }
return PROT + ‘//’’/hqdefault.jpg’;

Galleria uses cookies to provide necessary site functionality. By using our website, you agree to our Privacy Policy. I understand