MultiFileUploader

class MultiFileUploader : MultiFileOutputStream.Listener

Manages the upload of a video parts. An MultiFileUploader uploads one video only. A video is composed of multiple parts.

Parameters

context

The application context

sessionStore

The session store

sessionListener

The listener for one full video

sessionUploadPartListener

The listener for a part of a video

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun cancel()

Cancel the current uploads of this session.

Link copied to clipboard
fun clean()

Deletes remaining parts and parent folders.

Link copied to clipboard
open override fun onFileCreated(    partIndex: Int,     isLast: Boolean,     file: File)

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
val isCompleted: Boolean

True where all parts where successfully sent.

Link copied to clipboard
val isFinished: Boolean

True if there is no more parts to send. This means that all parts have been sent, cancelled or in error and the last part has been received.

Link copied to clipboard
val numOfPartCancelled: Int

Number of parts that have been cancelled.

Link copied to clipboard
val numOfPartsFailed: Int

Number of parts that failed to be sent.

Link copied to clipboard
val numOfPartsFinished: Int

Number of parts that have been either sent, cancel or in error.

Link copied to clipboard
val numOfPartsSent: Int

Number of parts that have been successfully sent.

Link copied to clipboard
val numOfPartsWaiting: Int

Number of parts that are not finished yet.

Link copied to clipboard
val totalNumOfParts: Int

Total number of parts for the video. The number of parts increases as long as upstream is running.