getAudioUrlFast method

  1. @override
Future<Map<String, dynamic>> getAudioUrlFast({
  1. required String videoId,
})
override

Only returns the audio URL using videoId, no other metadata

Parameters:

  • videoId: YouTube video ID (required)

Returns a Map with:

  • success: bool - Whether the operation was successful
  • audioUrl: String - The direct audio URL (if successful)
  • error: String - Error message (if failed)
  • videoId: String - The video ID used for the request

Implementation

@override
Future<Map<String, dynamic>> getAudioUrlFast({
  required String videoId,
}) async {
  final result = await _methodChannel.invokeMethod<Map<Object?, Object?>>(
    'getAudioUrlFast',
    {'videoId': videoId},
  );
  return Map<String, dynamic>.from(result ?? {});
}