OptionsDownloader

Downloads available track options for a media.

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
interface Callback
Callback interface for receiving download options.

Functions

Link copied to clipboard
open fun cancel()
Cancel any ongoing options download.
Link copied to clipboard
open fun downloadOptionsWithOtp(@NonNull otp: String, @NonNull playbackInfo: String, customPlayerId: String, @NonNull callback: OptionsDownloader.Callback)
Link copied to clipboard
open fun downloadOptionsWithToken(@NonNull token: String, @NonNull videoId: String, customPlayerId: String, @NonNull callback: OptionsDownloader.Callback)
open fun downloadOptionsWithToken(@NonNull token: String, @NonNull videoId: String, customPlayerId: String, @NonNull languageCode: String, @NonNull callback: OptionsDownloader.Callback)
Request download options with token and playbackInfo.