是否可以使用jquery将视频上传到youtube? [英] Is it possible uploading videos to youtube using jquery?
问题描述
我是jquery和asp.net,c#mvc技术的新手.我正在建立一个网站,我必须在该网站中将视频上传到您的网站.谁能帮我提供示例代码,以便使用jquery或asp.net从客户端浏览器上传视频.
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.
先谢谢了.
推荐答案
您需要向http://uploads.gdata.youtube.com/feeds/api/users/<youtube_username>/uploads
发送POST请求.您还需要提供真实性令牌.
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.
查看 Youtube API 了解更多信息.如果您不确定如何通过jQuery发送请求,请查看 jQuery文档
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.
这篇关于是否可以使用jquery将视频上传到youtube?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!