getVideoInfo method

  1. @override
Future<void> getVideoInfo({
  1. required String? videoUri,
  2. required dynamic onResult(
    1. String?
    ),
  3. required dynamic onError(
    1. String? message
    ),
})
override

Implementation

@override
Future<void> getVideoInfo(
    {required String? videoUri,
    required Function(String?) onResult,
    required Function(String? message) onError}) async {
  try {
    final result = await methodChannel.invokeMethod('getVideoInfo', {
      'videoUri': videoUri,
    });
    onResult(result);
  } on PlatformException catch (e) {
    onError(e.message);
  }
}