Formats
data class Formats(var title: String = "", var url: String = "", var src: String = "", val videoData: MutableList<VideoResource> = mutableListOf(), val imageData: MutableList<ImageResource> = mutableListOf(), val audioData: MutableList<AudioResource> = mutableListOf(), val cookies: MutableList<Cookie> = mutableListOf(), var selectedVideoIndex: Int? = null, var selectedAudioIndex: Int? = null, var selectedThumbnailIndex: Int? = null)
Author
Udhaya Created on 21-01-2022
For a single video it's properties are listed in this class
Parameters
title
Video title without \n and \t
url
User pasted source URL
src
Which Extractor is used Values can be "INSTAGRAM" or "FACEBOOK"
image Data
List of possible image with it's URL
video Data
List of available video qualities
audio Data
List of available audio qualities
cookies
Map of cookies currently used by TikTok downloader. Use this to download video
selected Video Index
Index of selected video and null
if nothing is selected
selected Audio Index
Index of selected audio and null
if nothing is selected
selected Thumbnail Index
Resolution of image(key) that was selected
Constructors
Link copied to clipboard
fun Formats(title: String = "", url: String = "", src: String = "", videoData: MutableList<VideoResource> = mutableListOf(), imageData: MutableList<ImageResource> = mutableListOf(), audioData: MutableList<AudioResource> = mutableListOf(), cookies: MutableList<Cookie> = mutableListOf(), selectedVideoIndex: Int? = null, selectedAudioIndex: Int? = null, selectedThumbnailIndex: Int? = null)
Functions
Link copied to clipboard
Used to get AudioResource of selected audio index
Link copied to clipboard
Used to get thumbnail URL of selected thumbnail quality
Link copied to clipboard
Used to get VideoResource of selected video index