VideoDownloadManager
Types
Link copied to clipboard
Link copied to clipboard
data class DownloadMetaData(id: Int?, linkHash: Int, var bytesDownloaded: Long = 0, var bytesWritten: Long = 0, var totalBytes: Long? = null, lastUpdatedMs: Long = 0, lastDownloadedBytes: Long = 0, createNotificationCallback: (DownloadObjects.CreateNotificationMetadata) -> Unit, internalType: VideoDownloadManager.DownloadType = DownloadType.IsPending, val isHLS: Boolean, var hlsProgress: Int = 0, var hlsTotal: Int? = null, var hlsWrittenProgress: Int = 0, downloadFileInfoTemplate: DownloadObjects.DownloadedFileInfo? = null) : Closeable
This class handles the notifications, as well as the relevant key
Link copied to clipboard
Link copied to clipboard
class EpisodeDownloadInstance(val context: Context, val downloadQueueWrapper: DownloadObjects.DownloadQueueWrapper)
Properties
Link copied to clipboard
Link copied to clipboard
50MB minimum size
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A key to save all the downloads which have not yet started and those currently running, using DownloadQueueWrapper can store keys which should not be automatically queued, unlike this key.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun downloadThing(context: Context, link: IDownloadableMinimum, name: String, folder: String, extension: String, tryResume: Boolean, parentId: Int?, createNotificationCallback: (DownloadObjects.CreateNotificationMetadata) -> Unit, parallelConnections: Int = 3, minimumSize: Long = 100): DownloadObjects.DownloadStatus
download a file that consist of a single stream of data
Link copied to clipboard
fun getDownloadEpisodeMetadata(episode: ResultEpisode, titleName: String, apiName: String, currentPoster: String?, currentIsMovie: Boolean, tvType: TvType): DownloadObjects.DownloadEpisodeMetadata
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setupStream(context: Context, name: String, folder: String?, extension: String, tryResume: Boolean): DownloadObjects.StreamData
fun setupStream(baseFile: SafeFile, name: String, folder: String?, extension: String, tryResume: Boolean): DownloadObjects.StreamData
Sets up the appropriate file and creates a data stream from the file. Used for initializing downloads and backups.
Link copied to clipboard