Here you will learn how to set music to audio player and play from the assets folder from the application.
just_audio is a feature-rich audio player for Android, iOS, macOS, web, Linux and Windows.
------------------------------------------------------------------------------------------------------
Timestamps
00:00 Asset Music | Just Audio Package
04:35 Import Package Just_Audio
05:05 Declaring object of AudioPlayer()
06:55 How to Create assets folder and put inside music file
07:35 How to declare music folder inside pubspec.yaml
09:15 How to set Asset file into player object
15:05 How to interact for play/pause buttons
16:33 How to put slider to show duration and position for current playing music
19:05 How get current music duration and set into duration variable
19:30 How to update position for slider each second
22:25 Function to convert Duration to String
------------------------------------------------------------------------------------------------------
Just_Audio Package : https://pub.dev/packages/just_audio
API Reference : https://pub.dev/documentation/just_au...
Example By Just_Audio Package : https://github.com/ryanheise/just_aud...
-----------------------------------------------------------------------------------------------------
Music provided by http://spoti.fi/NCS.
Music : Unknown Brain - Perseus (feat. Chris Linton) [NCS Release]
-----------------------------------------------------------------------------------------------------
For More Support : Comment down below
For More Update : Subscribe my channel