VideoUploadOptions

data class VideoUploadOptions(val multipart: Boolean = false, val multipartThresholdBytes: Long = 100L * 1024 * 1024, val partSizeBytes: Long = 64L * 1024 * 1024, val maxConcurrency: Int = 4, val maxPartAttempts: Int = 5, val partTimeoutSeconds: Long = 300, val resume: Boolean = true, val sessionStore: UploadSessionStore = UploadSessionStores.memory, val adaptiveConditions: UploadConditions? = null)

Signed-upload policy including retry, resume, cancellation, and explicit multipart behavior. Multipart is never selected implicitly by file size.

Constructors

Link copied to clipboard
constructor(multipart: Boolean = false, multipartThresholdBytes: Long = 100L * 1024 * 1024, partSizeBytes: Long = 64L * 1024 * 1024, maxConcurrency: Int = 4, maxPartAttempts: Int = 5, partTimeoutSeconds: Long = 300, resume: Boolean = true, sessionStore: UploadSessionStore = UploadSessionStores.memory, adaptiveConditions: UploadConditions? = null)

Properties

Link copied to clipboard

optional platform conditions for adaptive tuning

Link copied to clipboard

maximum parallel parts

Link copied to clipboard

maximum attempts per part

Link copied to clipboard

whether to use multipart upload

Link copied to clipboard

Retained for source compatibility. Upload strategy is never selected by file size.

Link copied to clipboard

target bytes per multipart part

Link copied to clipboard

timeout for each part

Link copied to clipboard

whether to resume a compatible checkpoint

Link copied to clipboard

multipart checkpoint store

Functions

Link copied to clipboard

Applies the optional adaptive policy without mutating this value.

Link copied to clipboard
fun validate(size: Long)

Validates multipart settings against the source size.