-
- All Implemented Interfaces:
public final class OptionsDownloader
Downloads available track options for a media.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
OptionsDownloader.Callback
Callback interface for receiving download options.
-
Constructor Summary
Constructors Constructor Description OptionsDownloader(Context context)
-
Method Summary
Modifier and Type Method Description void
downloadOptionsWithToken(@NonNull() String token, @NonNull() String videoId, String customPlayerId, @NonNull() OptionsDownloader.Callback callback)
Request download options with token and playbackInfo. void
downloadOptionsWithOtp(@NonNull() String otp, @NonNull() String playbackInfo, String customPlayerId, @NonNull() OptionsDownloader.Callback callback)
void
cancel()
Cancel any ongoing options download. -
-
Constructor Detail
-
OptionsDownloader
OptionsDownloader(Context context)
-
-
Method Detail
-
downloadOptionsWithToken
void downloadOptionsWithToken(@NonNull() String token, @NonNull() String videoId, String customPlayerId, @NonNull() OptionsDownloader.Callback callback)
Request download options with token and playbackInfo.
- Parameters:
token
- a valid tokenvideoId
- a valid videoIdcallback
- listener for receiving download options
-
downloadOptionsWithOtp
void downloadOptionsWithOtp(@NonNull() String otp, @NonNull() String playbackInfo, String customPlayerId, @NonNull() OptionsDownloader.Callback callback)
-
cancel
void cancel()
Cancel any ongoing options download.
-
-
-
-