i'm trying (php) to upload a video (browser based not storing video in my app want to upload straight to youtube).
I cant find any docs on this. Eg like this https://developers.google.com/youtube/2.0/developers_guide_php#Browser_based_Upload
But for v3.0 i'm looking at the code that is provided (3.0) but cant see a way to get video (ie $videoPath = "/path/to/file.mp4") without storing (temporarily in my app).
// 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"));
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…