问题
I am new to jquery and asp.net,c# mvc technology. I am building a site in which I have to upload videos to the you tube. Can any one help me in giving a sample code for uploading the video from client browser using jquery or asp.net.
Thanks in advance.
回答1:
You need a POST request to http://uploads.gdata.youtube.com/feeds/api/users/<youtube_username>/uploads
. You also need to provide an authenticity token.
Check out the Youtube API for further information. If you are not sure how to send the request via jQuery also take a look at the jQuery documentation.
来源:https://stackoverflow.com/questions/5828191/is-it-possible-uploading-videos-to-youtube-using-jquery