Mux Upload
Represents an upload of a video as a Mux Video asset. In order to use this SDK, you must first create a direct upload server-side, then return that direct upload PUT URL to your app.
Once you have a PUT URL, you can create and start your upload using the Builder
For example:
// Start a new upload
val upload = MuxUpload.Builder(myUploadUrl, myInputFile).build()
upload.setResultListener { myHandleResult(it) }
upload.setProgressListener { myHandleProgress(it) }
upload.start()
For full documentation on how to configure your upload, see the Builder
See also
Functions
If the upload has not succeeded, this function will suspend until the upload completes and return the result
Clears all listeners set on this object
Sets a listener for progress updates on this upload
Sets a listener for success or failure updates on this upload
Starts this Upload. You don't need to hold onto this object in order for the upload to complete, it will continue in parallel with the rest of your app. You can always get a handle to an ongoing upload by using MuxUploadManager.findUploadByFile
Properties
The current state of the upload. To be notified of state updates, you can use setProgressListener and setResultListener
True if the upload was successful, false otherwise