CodeIgniter:将视频上传到 YouTube
我正在使用 CodeIgniter + Zend 库。我想让用户将视频上传到我的网站,然后我会将其上传到我的 YouTube 频道。这是我第一次接触 YouTube API。有人能指出我正确的方向吗?
我看这个是否正确:http://code.google。 com/apis/youtube/2.0/developers_guide_protocol.html#Direct_uploading?有谁有一段代码显示如何通过 PHP 完成上传吗?
I'm using CodeIgniter + Zend libraries. I want to let users upload videos to my site, which I will then upload to my YouTube channel. This is my first exposure to the YouTube API. Can someone point me in the right direction?
Am I right to be looking at this: http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html#Direct_uploading? Does anyone have a snippet of code that shows how uploading is done via PHP?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
试试这个它的工作原理
Try this its working
我不建议将 Zend 与 CI 一起使用,因为它的大小和复杂性。我专门为 CodeIgniter 开发了一个库 https://github.com/jimdoescode/CodeIgniter-YouTube- API-Library
该库提供了多种不同的上传到 YouTube 的选项。您可以直接上传,将服务器上存储的视频上传到 YouTube。还可以选择使用表单将视频从客户端上传到 YouTube。检查一下,如果有任何问题请告诉我。
I don't recommend using Zend with CI due to it's size and complexity. I developed a library specifically for CodeIgniter https://github.com/jimdoescode/CodeIgniter-YouTube-API-Library
The library provides several different options for uploading to YouTube. You can do a direct upload where you upload a video stored on your server to youtube. There is also an option to use a form to upload a video from the client to youtube. Check it out and let me know if you have any questions.
该文档针对 Zend Gdata 介绍了此方法以及其他方法:上传视频
The docs have this, as well as other methods, covered for Zend Gdata: Uploading Videos