Upload Videos
When using the VideoKit recorder, videos will be automatically uploaded as soon as you start recording.
However, you are free to upload other videos through our system. The entry point is represented by
the upload manager returned by VideoKit.uploads()
.
Note that while video upload can take some time, if the app is killed while the upload is in progress, they are automatically resumed as soon as the app is reopened. The same logic stands for connection problems.
#
Upload videosTo upload videos, you need to create an upload request:
Then, the request must be passed to the upload manager:
#
Check the upload stateThe upload()
method will return an Upload
object which contains useful information and data,
including the Video
object that is going to be saved to network.
To check the upload state, you can add a listener:
To query all the pending uploads, the VideoKit.uploads().uploads
property will return
a list of Upload
objects.
#
Cancel uploadsThe upload manager provides utilities to cancel the upload for a given id, Uri
or Upload
: