crazy.works Posted September 17, 2008 Share Posted September 17, 2008 hello , i wanna make a small video sharing script , i need to show the videos in my script from youtube and google with the all data (thumbnail, the title and description), so i wrote a code to put the video link in the $url then i limit the video type if its youtube or google to show the video in the script and i succeed on that but i cant output the video thumbnail, the title and description and i dont know how can i do it so if that is my code ---------------------------------------------------------------------------------------------------------------------- <?php $site_type = "1"; /* site_type=1 --> youtube ...... site_type=2 --> google*/ $url = " /*put here the video link*/ $parts = explode("=", $url); $video_id = $parts[1]; if ($site_type == '1') { ?> <object type="application/x-shockwave-flash" width="444" height="333" data="http://www.youtube.com/watch?v=<?php echo $video_id; ?>"><param name="movie"/></object> <?php } elseif ($site_type == '2') { ?> <object type="application/x-shockwave-flash" width="444" height="333" data="http://video.google.com/googleplayer.swf?docId=<?php echo $video_id; ? >&hl=en&stop=true&playerMode=simple"><param name="movie"/></object> <?php } ?> --------------------------------------------------------------------------------------------------------------------------------- if u opened it on your browser it will show the video only without the other needed data, just some body help me to add function or code in it to show the thumbnail, the title and description under the video , resend me the code back after the editing on it and i will be thankful for that thanks Link to comment https://forums.phpfreaks.com/topic/124715-help-me-please-in-the-youtube-api-gdata/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.