<< Back to Twitvid API Documentation
Flow Chart for the upload/resume functionality

. The uploadOrResume functions only work from clients that have access to the file system, or those that can seek
to a certain position in the file. In case of a broken upload, clients can start uploading from a later position in the file.
. The UploadOrResume functions allows you to resume a broken video upload due to a bad data connection, thus saving the user from
re-uploading the entire file again.
. Before making the uploadOrResume, or uploadOrResumeAndPost calls, you need to first get a media_id by calling getId
. Save that ID in memory or file system in case the upload fails
. If the call to uploadOrResume, or uploadOrResumeAndPost fails, make a call getLastByte to get the latest valid
byte offset that TwitVid received
. In your local client, seek to the position returned by getLastByte.
. Make a call to uploadOrResume, or uploadOrResumeAndPost, with the file data beginning at the byte returned by getLastByte
and passing in the media_id returned by getId
<< Back to Twitvid API Documentation
Comments (0)
You don't have permission to comment on this page.