Video
constructor(videoUrl: String = "", videoTitle: String = "", resolution: Int? = null, bitrate: Int? = null, headers: Headers? = null, preferred: Boolean = false, subtitleTracks: List<Track> = emptyList(), audioTracks: List<Track> = emptyList(), timestamps: List<TimeStamp> = emptyList(), mpvArgs: List<Pair<String, String>> = emptyList(), ffmpegStreamArgs: List<Pair<String, String>> = emptyList(), ffmpegVideoArgs: List<Pair<String, String>> = emptyList(), internalData: String = "", initialized: Boolean = false)(source)
Parameters
video Url
The url of the video that's passed to mpv.
video Title
The title of the video displayed in the app.
resolution
The video resolution. Useful for sorting.
bitrate
The video bitrate. Useful for sorting.
headers
The headers of the video.
preferred
Set to preferred to give priority when loading. Note that multiple videos may have this to true.
subtitle Tracks
The list of external subtitle tracks.
audio Tracks
The list of external audio tracks.
timestamps
The list of timestamps.
mpv Args
Extra arguments passed to mpv.
ffmpeg Stream Args
Extra arguments passed to the video stream when downloading.
ffmpeg Video Args
Extra arguments passed to ffmpeg when downloading.
internal Data
Internal data used by resolveVideo.
initialized
Whether to call resolveVideo.
constructor(url: String, quality: String, videoUrl: String?, headers: Headers? = null, subtitleTracks: List<Track> = emptyList(), audioTracks: List<Track> = emptyList())(source)
Deprecated (with error)
Use the new Video constructor
Replace with
Video(videoTitle = quality, videoUrl = videoUrl, headers = headers, subtitleTracks = subtitleTracks, audioTracks = audioTracks)
Content copied to clipboard