ffMpegGetMediaInformation method

Future<Map?> ffMpegGetMediaInformation(
  1. String uri
)

Various informations about the Audio specified by the uri parameter.

The informations Map got with FFmpegGetMediaInformation() are documented here.

Implementation

Future<Map<dynamic, dynamic>?> ffMpegGetMediaInformation(String uri) async {
  _flutterFFprobe ??= FlutterFFprobe();
  try {
    return (await _flutterFFprobe!.getMediaInformation(uri))
        .getAllProperties();
  } on Exception {
    return null;
  }
}