Youtube api v3.0 Browser Based Download in php

I am trying (php) to upload a video (a browser that does not save the video in my application wants to upload directly to YouTube).

I can not find any documents about this. For example, like https://developers.google.com/youtube/2.0/developers_guide_php#Browser_based_Upload

But for v3.0, I look at the code that is provided (3.0), but I see no way to get the video (i.e. $ videoPath = "/path/to/file.mp4") without saving (temporarily in my application).

// 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"));
+4
source share
1 answer

Renewable downloads are now supported using CORS in the YouTube Data API version 3.

, , https://youtube-api-samples.googlecode.com/git/yt-upload-javascript/index.html ( https://code.google.com/p/youtube-api-samples/source/browse/#git%2Fyt-upload-javascript) , Google+ OAuth 2 ( OAuth 2, ) . , .

+7

All Articles