View Single Post
  #7   Spotlight this post!  
Unread 05-03-2012, 03:06
timothyb89 timothyb89 is offline
code monkey
FRC #1977 (Loveland High Robotics)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2009
Location: Loveland, Colorado
Posts: 45
timothyb89 will become famous soon enough
Re: Help Collect YouTube Videos

I implemented some similar functionality in FRC-DB a little while ago - e.g. http://frcdb.net/event/kettering/2012/match/14
We allow logged-in users to submit content directly on the match page, and then it gets placed into the moderation queue ( http://frcdb.net/moderator ), where we can approve/deny/etc it for spam prevention. It's pretty much 90% automated, and all the site admins/moderators have to do is hit an "approve" button, while anyone submitting videos just has to paste a link to the video.

The relevant bits of code:
YouTubeClient - extracts the video ID and makes a JSON request to YouTube to grab video info (tile, description, thumbnail, etc)
Content uploader UI - the HTML/JS code that makes the AJAX requests, doubles as a file uploader for images.

It's all Java / JSP / jQuery code so it might not be a huge help, but hopefully it can at least give you some ideas! I'd be happy to help out more in any way if you'd like, just let me know
__________________
FRC-DB: A detailed, web-based scouting database for FRC teams with lots of interesting statistics.
Reply With Quote