How to upload LARGE files on YouTube [closed]

我怕爱的太早我们不能终老 提交于 2019-12-01 00:49:57

You have forgotten to set the API key and you may use resumable upload.

You should create a project in your Dev Console and get your client id and secret from that console.

Getting Started Guide has all the information.

First, you will start with Registering your Application.

Also you can watch this video for How to Do it.

Ibrahim Ulukaya

Right now, PHP client library supports Resumable uploads but most of large uploads come from direct upload anyway.

Should be just a matter of setting a parameter in the constructor of Google_MediaFileUpload.

There is an example of usage of the class here, the relevant line is:

$media = new Google_MediaFileUpload('video/mp4', null, true, $chunkSizeBytes);

For authentication, you can use examples like in this one. Try creating installed application and other, use that client id and secret while you are testing locally.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!