I’m working on a webapp where I need store references to YouTube videos in a database.
For each stored entry, I need to be able to use the YouTube reference to a): show a YouTube thumbnail for the referenced video, b): show the referenced video in an embeded YouTube video player.
What would be most beneficial in this case – store the full YouTube URL or just the video id part?
Just the video id from youtube is fine, I also save this info to a table and generate the thumb images using the URL http://img.youtube.com/vi/iGpYLmy7F3Q/0.jpg