当我尝试使用api v2将大型视频(500Mb)上传到youtube。在php.ini中进行如下配置后:
session.gc_maxlifetime 10800
max_input_time 10800
max_execution_time 10800
upload_max_filesize 600M
post_max_size 600M
我得到错误超时:
Operation timed out after 100000 milliseconds with 0 bytes received
I resolved my problems,thank for your suppports.You can edit 'request_timeout_seconds' in Google config : \google-api-php-client\src\Google\Config.php
最佳答案
注意:YouTube数据API(v2)已于2014年3月4日正式弃用。有关更多信息,请参阅我们的弃用政策。请使用YouTube数据API(v3)进行新的集成,并将仍使用v2 API的应用程序迁移到v3 API。
https://developers.google.com/youtube/2.0/developers_guide_protocol_deprecated
关于php - 无法使用youtube api v2上传大型视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35920261/