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

videoUrl

The url of the video that's passed to mpv.

videoTitle

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.

subtitleTracks

The list of external subtitle tracks.

audioTracks

The list of external audio tracks.

timestamps

The list of timestamps.

mpvArgs

Extra arguments passed to mpv.

ffmpegStreamArgs

Extra arguments passed to the video stream when downloading.

ffmpegVideoArgs

Extra arguments passed to ffmpeg when downloading.

internalData

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)