Builder
Builds instances of MuxUpload.
If you wish for fine-grained control over the upload process, some configuration is available.
For example:
// Adapt to your upload to current network conditions
val chunkSize = if (/* onWifi */) {
16 * 1024 * 1024 // 16M, bigger chunks go faster
} else {
8 * 1024 * 1024 // 8M, smaller chunks are more reliable
}
val upload = MuxUpload.Builder(myUploadUrl, myInputFile)
.chunkSize(chunkSize) // Mux's default is 8Mb
.retriesPerChunk(5) // Mux's default is 3
.build()
Parameters
the URL obtained from the Direct video up
a File that represents the video file you want to upload
Constructors
Functions
The Upload SDK will upload your file in smaller chunks, which can be more reliable in adverse network conditions.
Allow Mux to manage and remember the state of this upload
Allows you to opt out of Mux's performance analytics tracking. We track metrics related to the overall performance and reliability of your upload, in order to make our SDK better.
The Upload SDK will upload your file in smaller chunks, which can be more reliable in adverse network conditions. Each chunk can be retried individually, up to the given number of times