downloadOptionsWithToken method
dynamic
downloadOptionsWithToken()
Request download options with token, videoId and custom player id.
Implementation
downloadOptionsWithToken(
String token,
String mediaId,
String? customPlayerId,
Function(DownloadOptions) onOptionsReceived,
Function(VdoError)? onOptionsNotReceived) {
this.onOptionsReceived = onOptionsReceived;
this.onOptionsNotReceived = onOptionsNotReceived;
_token = token;
_customPlayerId = customPlayerId;
methodChannel.invokeMethod("downloadOptionsWithToken", {
'token': token,
'videoId': mediaId,
'customPlayerId': customPlayerId,
});
}