width = '560px'; $video->height = '315px'; $video->lazy_load = true; $video->youtube_key = ''; $application_line = __LINE__; if($video->youtube_key === '') { echo '

You need to set the YouTube API Key in line ', $application_line, '.

', "\n"; echo '

', 'Please go to ', 'Google Developer API Console,'. ' get a key for the YouTube API'.' and set it in the line '.$application_line, '

'; } else { if($video->GetVideoDetails($url, '', $details)) { $tags = $video->GetVideo(0, true, $details['title'], $url); echo '

Details for video: ', $url, '

', "\n"; echo '
';
			print_r($details);
			echo '
'; echo '
'.$tags.'
'; echo '
'.htmlspecialchars($tags), '
'; } else echo '

Error: ', HtmlSpecialChars($video->error), '

', "\n"; } ?>