youtube api v3.0 Browser-basiertes Hochladen in PHP

Ich versuche (PHP), ein Video hochzuladen (Browser-basiert, speichere kein Video in meiner App, möchte es direkt auf YouTube hochladen).

Ich kann keine Dokumente dazu finden. ZB sohttps://developers.google.com/youtube/2.0/developers_guide_php#Browser_based_Upload

Aber für v3.0 schaue ich mir den Code an, der bereitgestellt wird (3.0), kann aber keinen Weg finden, Video zu erhalten (zB $ videoPath = "/path/to/file.mp4"), ohne es zu speichern (vorübergehend in meiner 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"));

Antworten auf die Frage(1)

Ihre Antwort auf die Frage