I want to upload video to Youtube from my ASP.NET application. It should return video ID or embed code after uploaded video.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ah, google integration. Be ye warned: here lies madness.
http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html#Process_Flows_for_Uploading_Videos
An extremely high overview:
You will either
After authorization you may either:
Youtube then passes you back data that contains the id as well as other meta video data.
At this point you would need to perform additional http posts to their api in order to retrieve the embed code.
Youtube’s api upload documentation lists between 6-13 steps depending on what choices you make in your app.
Hope this overview helps!
Edit
Here is another question on SO about this same thing. It includes code samples:
How can I upload a video to YouYube using the Youtube API in C#?