Formats

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)

Parameters

title

Video title without \n and \t

url

User pasted source URL

src

Which Extractor is used Values can be "INSTAGRAM" or "FACEBOOK"

imageData

List of possible image with it's URL

videoData

List of available video qualities

audioData

List of available audio qualities

cookies

Map of cookies currently used by TikTok downloader. Use this to download video

selectedVideoIndex

Index of selected video and null if nothing is selected

selectedAudioIndex

Index of selected audio and null if nothing is selected

selectedThumbnailIndex

Resolution of image(key) that was selected