Skip to content

prabgupt/youtube_video_upload_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files added/modified
-------------------------

public/scripts/youtubeUtilAPIs.py
app/controller/multimedias_controller.rb
app/views/multimedia/new.html.erb

trips/config/routes.rb

Rest is rails code which gets generated by default

Usage:
------

To setup env to run python script:

   # Please refer Getting Started(http://code.google.com/apis/gdata/articles/python_client_lib.html) guide. In nutshell, you need to install Python and then google Data Library as specified in the link.
   
   # Replace below data inside python script; like developer key, password, etc. with that of yours. You will need to sign in(http://code.google.com/apis/youtube/dashboard) for YouTube developer key. Once signed in, register you product and get values for below attributes. 'source' and 'client_id'   will be the name of the product you registered before.
	yt_service.developer_key = 'xxxxxxx'

	yt_service.client_id = 'xxxxxxx'

	yt_service.email = 'xxxxxxx'

	yt_service.password = 'xxxxxxxx'

	yt_service.source = 'xxxxxxxxxx' 

To start rails server:

	#From command line: rails server
	
	Access http://localhost:3000. Try uploading a video now and once upload completes, you'll see url changed with some new parameters like status and id. Video URL would be: http://www.youtube.com/watch?v=<id>
	
	
Complete description about sample can be found at: http://www.golygon.com/2011/05/plugin-to-upload-video-to-youtube-directly-from-your-site/

About

Video plugin for your site to directly upload video to youtube

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published