📅  最后修改于: 2022-03-11 14:59:57.658000             🧑  作者: Mango
AudioPlayer audioPlayer = AudioPlayer();
audioPlayer.onDurationChanged.listen((Duration duration) {
print('max duration: ${duration.inSeconds}');
});