Search
 
SCRIPT & CODE EXAMPLE
 

DART

flutter audio player get duration

# The audio library is just_audio
final player = AudioPlayer();
var duration = await player.setUrl('audio_file.mp3');
Comment

flutter audio player get duration length

AudioPlayer audioPlayer = AudioPlayer();   

audioPlayer.onDurationChanged.listen((Duration duration) {
  print('max duration: ${duration.inSeconds}');
});
Comment

PREVIOUS NEXT
Code Example
Dart :: flutter send json body to api 
Dart :: dash border style flutter 
Dart :: add border color to one side and rounded border container flutter 
Dart :: flutter gesturedetector 
Dart :: dart replase 
Dart :: size row to maximum flutter 
Dart :: for in loop dart 
Dart :: sizedbox flutter 
Dart :: sort list bool dart 
Dart :: ElevatedButton background flutter 
Dart :: dart sort list by date 
Dart :: iterable.every dart 
Dart :: or operator in dart 
Dart :: shape property of card in flutter 
Dart :: dart list sort by value with custom class 
Dart :: alertdialog shape flutter 
Dart :: ink image clip flutter 
Dart :: dart substring 
Dart :: flutter alert dialog shape 
Dart :: get string from future string flutter 
Dart :: flutter map with index 
Dart :: dar initilize list with zero 
Dart :: upload a file to ec2 instance 
Dart :: alternate of string class in dart, stringBuffer dart, string buffer dart, string buffer,stringbuffer,stringBuffer 
Dart :: custom radio button flutter 
Dart :: flutter CustomPaint clip 
Dart :: flutter button playing sound 
Dart :: path dart 
Dart :: flutter showmodal initstate 
Dart :: flutter cupertino theme 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =