Hacker News new | ask | show | jobs
by thegeomaster 2525 days ago
Maybe with this API, but when uploading a YouTube video through YouTube, you definitely get the URL before the actual upload finishes. I don't imagine it'd be terribly hard to reverse-engineer that API.

My guess is that you can start an upload, get the ID, and then stream unimportant and non-comitall video headers and chunks (e.g. subtitle tracks or other metadata) slowly enough to keep the server from closing the connection on you. Then you can just record your video and start uploading actual video chunks once ready.

Or maybe YouTube doesn't have a huge timeout for starting your upload, so you don't even have to do all of that.