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"

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

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

Properties

Link copied to clipboard
Link copied to clipboard
val cookies: MutableList<Cookie>
Link copied to clipboard
Link copied to clipboard
var selectedAudioIndex: Int? = null
Link copied to clipboard
Link copied to clipboard
var selectedVideoIndex: Int? = null
Link copied to clipboard
var src: String
Link copied to clipboard
Link copied to clipboard
var url: String
Link copied to clipboard