Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter audio player get duration

# The audio library is just_audio
final player = AudioPlayer();
var duration = await player.setUrl('audio_file.mp3');
 
PREVIOUS NEXT
Tagged: #flutter #audio #player #duration
ADD COMMENT
Topic
Name
5+7 =