I am using the files I attached without modding the YouTubeGallery.php on a 2.4.4 install and am having no problems.
By changing the YouTubeService.php file to include the above code, you are no longer connecting to the YouTube API via REST interface.
In doing this you are now subject to the YouTube block in showing videos in an iframe. Which in turn means your videos may not display in the light window in all browsers. They would like you to use this method instead:
The announcement about this block is posted here:
By maintaining the original code and using the YouTube API via REST interface , you are not subject to the no frames block from youtube.
The only issue I did run into was the Thumbnail size. So I changed the YouTubeService.php to look like this
$data['SmallThumbnail'] = new ArrayData(array(
'URL' => Convert::raw2xml((string)$thumbnailObjs['url']),
//'Width' => (int)$thumbnailObjs['width'],
//'Height' => (int)$thumbnailObjs['height'],
'Width' => 100,
'Height' => 80,
Hope this helps anyone else that comes across this topic.