April 2020
Intermediate to advanced
380 pages
9h 24m
English
After creating the UI of the application, we will now add Audio Player to the application to play audio files. We will make use of the audioplayer plugin to add Audio Player as follows:
audioplayers: 0.13.2
Now, get the packages by running flutter pub get.
import 'package:audioplayers/audioplayers.dart';
AudioPlayer audioPlayer = AudioPlayer();
play() async { var url = ‘http://34.70.80.18:8000/download/output_1573917221.mid’; int result = await audioPlayer.play(url); ...Read now
Unlock full access