【发布时间】:2013-11-10 12:23:07
【问题描述】:
我正在尝试 (php) 上传视频(基于浏览器的未在我的应用中存储视频想要直接上传到 youtube)。
我找不到关于此的任何文档。比如像这样https://developers.google.com/youtube/2.0/developers_guide_php#Browser_based_Upload
但是对于 v3.0,我正在查看提供的代码 (3.0),但看不到在不存储的情况下获取视频的方法(即 $videoPath = "/path/to/file.mp4")(暂时我的应用程序)。
// REPLACE with the path to your file that you want to upload
$videoPath = "/path/to/file.mp4";
// Create a snipet with title, description, tags and category id
$snippet = new Google_VideoSnippet();
$snippet->setTitle("Test title");
$snippet->setDescription("Test description");
$snippet->setTags(array("tag1", "tag2"));
【问题讨论】:
标签: php video youtube youtube-api