getMediaFormats method

Future<List<MediaFormat>> getMediaFormats(
  1. String filepath
)

Get all MediaFormats contained by the File at filepath.

Implementation

Future<List<MediaFormat>> getMediaFormats(String filepath) async {
  final model = await getModel(filepath);
  return model.streams.map(MediaFormat.fromStreamModel).toList();
}