getMediaFormats method
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();
}