Hi, I want to embed youtube videos on my site, but before showing embedded video, I want to show videos as small thumbnails (I dont want to use embedding on browse videos page) How can I take image preview of a youtube video. Another question, is this a unique way (getting video capture from anıther site), or do i need specific methods for each site, say youtube, dailymotion, metacefe etc.
i would do something with curl to get it from the sites ur taking the embed from. this is an example <?php //CURL FUNCTION YOUTUBE //CURL FUNCTION METACAFE if(site = metacafe){ //use the matacafe curl function that grabs the thumb url and instert to database } elseif(site = youtube){ //use the youtube curl function that grabs the thumb url and instert to database } // AND SO ON ?> PHP:
If you add in your scripting the option to choose for mediaplayer, flash, quicktime and realplayer then you have all grounds covered! for video extensions. And most video hosting sites will create there own thumbsnails, maby you can use those!? there free if you cache on your own site. (read there rules for using anything!)