I'm trying to use the plugin Audio Players for my recorded audios ( it's working perfectly for android ) but when I try to play the audio I get this error:
"iOS => call setVolume, playerId 57c0b5cc-3c75-4f8f-bf99-ad8ddbcb7709"
"iOS => call setUrl, playerId 57c0b5cc-3c75-4f8f-bf99-ad8ddbcb7709"
""
2022-06-23 18:27:00.168194-0300 Runner[16264:695114] flutter: AVPlayerItem.Status.failed
Any idea of what can I do to solve this problem?
await audioPlayer2.setVolume(1.0);
await audioPlayer2.setUrl(filepath, isLocal: true);
await audioPlayer2.play(filepath, isLocal: true);
audioPlayer2.onPlayerStateChanged.listen((event) {
setState(() {
_isPlaying = false;
});