vimeo.js
vimeo.js copied to clipboard
upload link support ticket (#3995564)
Hello,
can we have an attribute in Vimeo Object to store upload link in order to permit resume after refresh page or later ?
For now, we just are able to override some method to do it. However, I think it can be useful.
@idsquare Out of curiosity, what do you plan on doing with the upload link? That's used exclusively for tus uploads, and unless you're doing your own tus integration isn't going to be of much use.
We need it to resume the upload after a loss of connection or have it pause and restart it later. For the test, i used the same browser, file and form. No information or upload link are stored and the upload will restart from 0 each time. In our case, we need to resume the upload after switching the computer off and then return to the form. Our users have different types of bandwidth so we need to handle this issue as best we can.
The upload link will be useful to reinsert it into the Vimeo Object in order to resume a defined upload like Vimeo.resume( upload_link ).
Regards
Since this'll be kind of non-standard, and I'm not sure where in the SDK API we could surface that, you might be better off overriding the upload methods in the SDK with your own tus integration.
Or if you want to take a stab at extending _performTusUpload with some resumption capabilities we'd happily review and possibly get it into the library.
Thanks for your answer. I would try some override on method like upload or _performTusUpload. I will be happy to share the result to reviewing after.