Youtube API, nexturl and XMLHttpRequest

2019-07-17 05:23发布

问题:

I've managed to upload a video to YouTube via CORS and XMLHttpRequest so that I can provide a progress bar on the uploads. However after the upload gets to 100% and the video appears in the YouTube channel, the error handler is called.

I think this is to do with the nextUrl parameter which has to be provided as part of the form action. Has anyone come across this and does anyone have a workaround?

I've seen this (Can I upload to youtube without a full page refresh using FormData?) on StackOverflow but it doesn't help as I don't want to host the videos on our servers.

Cheers Simon