No video

Flutter Audio Player (from URL, File, Assets)

  Рет қаралды 96,955

HeyFlutter․com

HeyFlutter․com

Күн бұрын

Create a simple Audio Player in Flutter that plays audio from url, assets or file. This Flutter Music Player App can play audio, pause audio and stop audio and has an Audio Player progress bar and seekbar.
Click here to Subscribe to Johannes Milke: www.youtube.co...
👉 12 Week Flutter Training | heyflutter.com
👉 Flutter Masterclass Courses | heyflutter.com...
Source Code | github.com/Joh...
My Courses | heyflutter.com
Follow Newsletter | johannesmilke....
SUBSCRIBE HERE
bit.ly/Johannes...
SUPPORT & SPONSOR ME
github.com/spo...
TIMELINE
0:00 Audio Player / Music Player
2:07 Load Audio From URL
2:11 Load Audio From File or Path
2:23 Load Audio From Assets
SOCIAL MEDIA: Follow Us :-)
Twitter | / heyflutter_
Linkedin | / heyflutter
#Flutter #Tutorial #JohannesMilke
LIKE & SHARE & ACTIVATE THE BELL
Thanks For Watching :-)

Пікірлер: 224
@HeyFlutter
@HeyFlutter 2 жыл бұрын
👉Join 12 Week Flutter Training: heyflutter.com 👉Join the WhatsApp Channel to get the latest news about Flutter & HeyFlutter: whatsapp.com/channel/0029VaDNCZtC1Fu8nL2vmw3f Source Code: github.com/JohannesMilke/audio_player Audio Recorder Tutorial: kzbin.info/www/bejne/oGXQiWOgqd2KpqM Neumorphism Tutorial: kzbin.info/www/bejne/d2Olk5uoaKl6mpI Nested ListViews and Columns Tutorial: kzbin.info/www/bejne/kKGrpnSYjrx_adk ChatApp UI Design Tutorial: kzbin.info/www/bejne/m3jLp39mbZdghsU Flexible Widget Tutorial: kzbin.info/www/bejne/a4Xac4uCj8mJrM0 Expanded Widget Tutorial: kzbin.info/www/bejne/hGKpfotqp6mhbLs Spacer Widget Tutorial: kzbin.info/www/bejne/pGXHe4mLmc9nn80 FittedBox Widget Tutorial: kzbin.info/www/bejne/jaG3foF3p9OLmsU Flutter Layout Basics Tutorial: kzbin.info/www/bejne/r4rbppiKg653oqM Row Layout Basics Tutorial: kzbin.info/www/bejne/ooqYeKeEoNusnq8 Column Layout Basics Tutorial: kzbin.info/www/bejne/pIicoXSvedhgrac Expansion Tile Tutorial: kzbin.info/www/bejne/rIO6imB_hqacpJI Expansion Panel Tutorial: kzbin.info/www/bejne/qGivYmdsmZ6Md5o Bottom Sheet Tutorial: kzbin.info/www/bejne/iom8ppSfqtCqbac Popup Dialog Tutorial: kzbin.info/www/bejne/aqHRXpKjmZqCopY Dropdown Menu Tutorial: kzbin.info/www/bejne/sGHMmYiYrNGGftU PageView Tutorial: kzbin.info/www/bejne/qXe7mGCmndCVh7c Page Transition Animation Tutorial: kzbin.info/www/bejne/lYOWdpKXpMtpb8U Horizontal ListView Tutorial: kzbin.info/www/bejne/mJKkkH1rqbqne7c
@fabricenyl6504
@fabricenyl6504 Жыл бұрын
Hi. in a ListView.builder() with many audios, when i launch one every audio read the same file. how can i solve this please
@programingtales7514
@programingtales7514 2 жыл бұрын
Your channel is a treasure for the flutter domain you are doing an amazing work thank you very much
@marcodrochner7166
@marcodrochner7166 8 ай бұрын
Such incredible quality! It is rare for a video to be so concise, using as little time as necessary and yet being very clear. The red outlining to show what the code represents, and you show for everything (URL, file, & assets!). The website explanations I found before only showed examples for URL
@HeyFlutter
@HeyFlutter 8 ай бұрын
Glad you liked it, @marcodrochner7166 😀
@hayahesham2980
@hayahesham2980 3 ай бұрын
You saved my life! Thanks A Lot!
@HeyFlutter
@HeyFlutter 3 ай бұрын
Glad to hear that, You are most welcome @hayahesham2980
@AlDasturchi
@AlDasturchi 9 күн бұрын
You made my day, mate
@HeyFlutter
@HeyFlutter 6 күн бұрын
Thank you, @AlDasturchi! 🙂
@CodeZee
@CodeZee 2 жыл бұрын
Once again, thanks a lot!. Needed this for one of my projects.
@NavdeepPoet
@NavdeepPoet 2 жыл бұрын
Awesome video.. You could add the play in background and next audio option and control from notification bar …. the way you explain no one else do it on KZbin.. Thank you Milke ….
@samuelkings9416
@samuelkings9416 2 жыл бұрын
And also playing audio from a playlist. Thanks Mike
@NavdeepPoet
@NavdeepPoet 2 жыл бұрын
@@HeyFlutter Welcome Dear ..
@aknbozburun6293
@aknbozburun6293 2 жыл бұрын
OMG it's just what i need right now. Thanks.
@abhisheksinghal4470
@abhisheksinghal4470 Жыл бұрын
Thanks man !! for sharing this . Your content and explanation is really good and helpful for flutter community . Cheers !!
@HeyFlutter
@HeyFlutter Жыл бұрын
You are welcome, @abhisheksinghal4470 😊
@sunderbhagwani
@sunderbhagwani 2 жыл бұрын
Thank-you🙏🏻 This is what I was looking for 😀. It will help me a lot in one of my project😄
@botanmh
@botanmh Жыл бұрын
thanks for your efforts, BUT WHY do you not use the same package "flutter_sound" to play audio also, WHY you used different package to record and play, Thanks
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, Botan Muhamad! 🙂. There is no specific reason for that you can use any of them.
@Mezix_learn
@Mezix_learn 2 жыл бұрын
Hi, Can you put a video on full audio player app with list of songs to select
@botanmh
@botanmh 2 жыл бұрын
Thanks to your efforts as a high professional contributor. If you try to make a video on Audio player which works in background, it would be beneficial alot. Thanks
@youssefidbella7094
@youssefidbella7094 2 жыл бұрын
thank you so much, I spent a lot of time searching for this topic
@Goldman189
@Goldman189 2 жыл бұрын
Great lesson with great teacher thanks
@S-Lomar
@S-Lomar 9 ай бұрын
Thanks for sharing ❤️💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕
@HeyFlutter
@HeyFlutter 9 ай бұрын
You are welcome, @S-Lomar!
@medo_xo6941
@medo_xo6941 2 жыл бұрын
You are a great person You always saved me thanks 😊
@Abdul_Hadi_Maliky
@Abdul_Hadi_Maliky Жыл бұрын
Thank you so much sir. your channel is the best channel I have ever subscribed. you are the boss of Flutter engine.
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad to hear that, Thank you Maliky! 😊
@jacd007-xt
@jacd007-xt 2 жыл бұрын
Great tutorial, Great teacher, thanks, and with videos (network, file)?
@riskzerobeatz
@riskzerobeatz 2 жыл бұрын
Hi. Thnks for the great tutorial. (formatTime(position)) gives me an error. Could you tell me why is that?
@anmolsharma9539
@anmolsharma9539 2 жыл бұрын
formatTime is a custom method he has shown it in the upper part of the screen when he write them.
@abhaytiwari6411
@abhaytiwari6411 2 жыл бұрын
Thank you so much Milke 👍
@faridahmadov5991
@faridahmadov5991 Жыл бұрын
Thank you so much bro.Can you please teach how to rewind a audio by long pressing a button?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks for the idea, Farid Ahmadov! 🙂 I have added it to my list of ideas for future videos!
@user-os2cw6qf7w
@user-os2cw6qf7w 2 жыл бұрын
Wow, it's so easy! Thanks
@MrIMacro
@MrIMacro 10 ай бұрын
could you please show us how to add loop function?
@HeyFlutter
@HeyFlutter 10 ай бұрын
Thanks for the idea @MrIMacro 😀, i have added it in my list of future videos
@hassanosama357
@hassanosama357 2 жыл бұрын
Doing great, thanks for this video
@bhabhayt398
@bhabhayt398 2 жыл бұрын
Search data from local database in implement staggered grid view
@dicksonguinajnr1449
@dicksonguinajnr1449 2 жыл бұрын
Thank you so much my brother
@AT-Corporation
@AT-Corporation Жыл бұрын
Hello, when I enter a url as a String, it shows me The argument type 'String' can't be assigned to the parameter type 'Source'. Why does this happen? And which URL sources can I use, youtube? BR :)
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Alex! Follow this link: stackoverflow.com/questions/55995791/how-can-i-resolve-the-argument-type-string-cant-be-assigned-to-the-parameter I hope you will get your answer 🙂
@danitakeuchi9221
@danitakeuchi9221 2 жыл бұрын
Very awesome mr, thanks a lot
@anchorrealtynm7897
@anchorrealtynm7897 Жыл бұрын
Nice video, thanks.
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad you liked it, @anchorrealtynm7897 😀
@yousefabdelnaby3555
@yousefabdelnaby3555 Жыл бұрын
thanks for the exerted effort , I face an issue children: [ Text(formatTime(position)), Text(formaTime(duration)), ] it doesn't recognize formatTime
@HeyFlutter
@HeyFlutter Жыл бұрын
Hey, @yousefabdelnaby3555 🙂 please make sure to check: 1. formatTime() is defined with in scope (i.e., in same class on global level) 2. formatTime() is returning a string value
@DoremiMali
@DoremiMali 10 ай бұрын
Hi, can you make a tutorial for creating an audio playlist with rootbundle assets/audio. Please
@HeyFlutter
@HeyFlutter 9 ай бұрын
Thanks for the idea @DoremiMali 😀, i have added it in my list of future videos
@tarekrefaei90
@tarekrefaei90 2 жыл бұрын
Thanks pro ... what if I want it to start automatically when the app start instead of using play btn ??
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Tarek Refaei! Follow this link: stackoverflow.com/questions/60921992/play-audio-file-from-where-i-pause-not-from-the-beginning-in-audioplayers-flutt I hope you will get your answer 🙂
@jhancock7890
@jhancock7890 2 жыл бұрын
Actually I am having a hard time playing from assets folder. The UI is staying the same. Anyone else having this problem? The setURL method for audio_players package is no longer available.
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You J Hancock! Follow this link: stackoverflow.com/questions/71274141/playing-audio-from-assets-flutter I hope you will get your answer 🙂
@amrsamy9007
@amrsamy9007 7 ай бұрын
💯 Thanks you are always my life savior
@HeyFlutter
@HeyFlutter 7 ай бұрын
You are welcome, @amrsamy9007 😊
@warunakaushalya4157
@warunakaushalya4157 2 жыл бұрын
Next, make a video about firebase remote config. Make a video on how to save the API key in the remote config, and how to change the behavior of the app using remote config. For example how to send a pop-up message to update an app using firebase remote config 🔥
@BosExplorify3043
@BosExplorify3043 2 жыл бұрын
Amazing content 👍🏽 Will this work for radio streaming link? Thanks
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Bosun Olaniyan! Follow this link: pub.dev/packages/flutter_radio_player I hope you will get your answer 🙂
@davidkanai6944
@davidkanai6944 2 жыл бұрын
awesome work, how about going to next or back song
@pulkitsaxena2202
@pulkitsaxena2202 2 жыл бұрын
Great tutorial Johannes, quick question - how can i continue playing the song as i navigate away to other screens in the same app?
@techyakshay6868
@techyakshay6868 2 жыл бұрын
You r awesome bro❤️
@computerprogrammer9279
@computerprogrammer9279 2 жыл бұрын
Yes bro You are the best
@Maystro_eg
@Maystro_eg 2 жыл бұрын
Great video
@mohammedzaheerf4126
@mohammedzaheerf4126 4 ай бұрын
Great❤
@HeyFlutter
@HeyFlutter 3 ай бұрын
Thanks, @mohammedzaheerf4126! 🙂
@hassanosama357
@hassanosama357 2 жыл бұрын
Can you make a Background mp3 also. Great thanks
@baxiry.
@baxiry. 2 жыл бұрын
awesome !!
@salmakhaled8024
@salmakhaled8024 Жыл бұрын
Excuse me I want to play audio come from APIs and I created class model and use dio for making http request every time I request it gives me timeout exception and future not completed and cookies null how I can solve this problem
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You @salmakhaled8024! Follow this link: stackoverflow.com/questions/64214710/how-to-fetch-audio-from-my-api-with-protected-urls-using-just-audio-flutter I hope you will get your answer 🙂
@sepehramini6904
@sepehramini6904 Жыл бұрын
hi, thanks for tutorial, i have a problem. the play method is not accepting a String, but a source. and i dont understand how to make it functioning.
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, Sepehr Amini! 🙂. Try to paste the error message with your question whenever you face any issue or error.
@atultiwari7361
@atultiwari7361 2 жыл бұрын
Next level ...
@almightykodadon
@almightykodadon Жыл бұрын
The method ‘setUrl’ isn’t defined for the type ‘AudioPlayer’. Try correcting the name of an existing method, or defining a method named ‘setUrl’
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Almighty KODaDon! Follow this link: stackoverflow.com/questions/72654603/the-method-play-isnt-defined-for-the-type-audiocache I hope you will get your answer 🙂
@almightykodadon
@almightykodadon Жыл бұрын
@@HeyFlutter I will check this out
@priyanshudutta9463
@priyanshudutta9463 Жыл бұрын
Hey nice video, I am facing an issue 0:48 where you create the URL , the error is showing that The argument type 'String' can't be assigned to the parameter type 'Source'. Please help
@alshr7819
@alshr7819 Жыл бұрын
Wrap your url with UrlSource widget
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Priyanshu Dutta! Follow this link: www.kindacode.com/snippet/flutter-error-the-argument-type-string-cant-be-assigned-to-the-parameter-type-uri/ I hope you will get your answer 🙂
@ManuMarea
@ManuMarea Жыл бұрын
this is so great...what about having a playlist?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks for suggestion, @ManuMarea! 🙂
@naturalandforests8012
@naturalandforests8012 Жыл бұрын
hello ddear.....why audioPlayer.onAudioPositionChanged method auto starts after some seconds...and resets the position to zero...
@HeyFlutter
@HeyFlutter Жыл бұрын
Hey 😊, @naturalandforests8012! Check out this solution: stackoverflow.com/a/65173226 I hope this may help you
@ertugodabasi
@ertugodabasi 2 жыл бұрын
Hey Johannes, thanks for the tutorial again. I'm using audio player but loop does not work for iPhone when app is in background or screen is locked. Do you know any solutions for that? Thanks
@ertugodabasi
@ertugodabasi 2 жыл бұрын
​Thank your for quick response :) There is no error message, when the audio finished audioplayer.state turns to COMPLETED. It is a known issue, mentioned here github.com/bluefireteam/audioplayers/issues/1038.
@jayswalviraj4528
@jayswalviraj4528 2 жыл бұрын
Hello Sir, How to set Media player with local notification? have you any code or suggestion please share me. Thank You For Giveing Me Your Important Time.
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Jayswal Viraj! Follow this link: medium.com/flutter-community/local-notifications-in-flutter-746eb1d606c6 I hope you will get your answer 🙂
@user-tr9yb2cl4j
@user-tr9yb2cl4j Жыл бұрын
I don't know when i pick the file but it can't use in setUrl and there is no and attribute in setUrl even setUrl is not working nowday
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You @user-tr9yb2cl4j! Follow this link: stackoverflow.com/questions/62872496/no-audio-sound-after-importing-audioplayers-package-in-flutter I hope you will get your answer 🙂
@adrielcosta404
@adrielcosta404 Жыл бұрын
Thanks for video! where do i get the urls to test in my app? can you make it available?
@HeyFlutter
@HeyFlutter Жыл бұрын
Hey, @adrielsilva8685 🙂 there are many open source audios you can use
@amandwivedi7413
@amandwivedi7413 10 ай бұрын
Sir What if the audios are stored in firebase and the link is there but in last there is no .wav how to play that URL from firebase?
@HeyFlutter
@HeyFlutter 10 ай бұрын
Hey, @amandwivedi7413 🙂 If your URL does not end with a typical audio format extension like .wav or .mp3, the package might still be able to play the audio if it supports the format that the URL is pointing to.
@amandwivedi7413
@amandwivedi7413 10 ай бұрын
@@HeyFlutter Thank you so much
@fresshsh8197
@fresshsh8197 Жыл бұрын
How can you play a youtube audio just the audio because this did not work for me
@HeyFlutter
@HeyFlutter Жыл бұрын
Hey, @fresshsh8197 🙂 KZbin urls are encoded so cannot be directly accessed. Please try this solution: kzbin.info/www/bejne/fYLciHyrp5Vml9k
@shakirali4122
@shakirali4122 Жыл бұрын
hello sir, how can I create a playlist and enable the next and back button for this audio player?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You SHAKIR ALI! Follow this link: suragch.medium.com/managing-playlists-in-flutter-with-just-audio-c4b8f2af12eb I hope you will get your answer 🙂
@sunilgohel7889
@sunilgohel7889 2 жыл бұрын
How to make custom check box in list view and selection of check box
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Sunil Gohel! Follow this link: stackoverflow.com/questions/63788530/how-to-add-checkbox-in-listview-in-flutter I hope you will get your answer 🙂
@amandwivedi7413
@amandwivedi7413 9 ай бұрын
How to play the audio when the app is in background?
@HeyFlutter
@HeyFlutter 9 ай бұрын
Thank You @amandwivedi7413! Follow this link: stackoverflow.com/questions/61688915/playing-audio-in-the-background-using-flutter I hope you will get your answer 🙂
@hiraS4134
@hiraS4134 2 жыл бұрын
How can i fast-foward and rewind-back the audio? I'm unable to do so usibg the audioPlayer package
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks for the idea Hira Sharif 😀, i have added it in my list of future videos
@abelayinde
@abelayinde Жыл бұрын
the formatTime(position) is throwing red line. who knows why please?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, abel ayinde! 🙂. Try to paste the error message with your question whenever you face any issue or error.
@kwakukusi4094
@kwakukusi4094 2 жыл бұрын
you're too much. Amazing videos. It's a shame I have not been able to watch your videos lately
@vikaskumargupta7035
@vikaskumargupta7035 2 жыл бұрын
It is working fine for Android but for iOS when i Play song list through url application is crashed after first song. Giving ' nil value fetal error'
@HeyFlutter
@HeyFlutter 2 жыл бұрын
No Worries vikas kumar Gupta, make sure to follow the tutorial step by step 🙂
@FilminTamil
@FilminTamil Жыл бұрын
is it possible that we are able to build the flutter app for video to audio converter ???
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Film in Tamil! Follow this link: stackoverflow.com/questions/73729251/to-convert-wav-audio-file-to-mp3-in-flutter I hope you will get your answer 🙂
@abdullahkhaled6907
@abdullahkhaled6907 2 жыл бұрын
When I upload my application to Galaxy Store they reject the application because of a message "Blocked by Play Protect" knowing that I built the application in your way, Is the reason that the application is not on Google Play?
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Abdullah Khaled! Follow this link: stackoverflow.com/questions/51080755/installation-app-blocked-by-play-protect I hope you will get your answer 🙂
@Kunda-leo
@Kunda-leo 2 жыл бұрын
Wonderful tutorial thanks a lot Sir, just a quick question, when I click on play button am able to play my audio from url and if I go over and click on the other file it also start playing. but I want a situation where if there is already one playing and I click on the other file to play, I want the one which was playing to automatically stop and play the current selected. How can I achieve that? Thanks,
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Hit-Boyy! Follow this link: stackoverflow.com/questions/70606438/flutter-how-to-play-and-stop-audio-at-specific-time I hope you will get your answer 🙂
@Kunda-leo
@Kunda-leo 2 жыл бұрын
@@HeyFlutter thanks 🙏
@surendravishwakarma5244
@surendravishwakarma5244 Жыл бұрын
hello @Johannes milke I am not able to pass String parameter inside play method. The argument type 'String' can't be assigned to the parameter type 'Source Please help me
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Surendra Vishwakarma! Follow this link: stackoverflow.com/questions/55995791/how-can-i-resolve-the-argument-type-string-cant-be-assigned-to-the-parameter I hope you will get your answer 🙂
@surendravishwakarma5244
@surendravishwakarma5244 Жыл бұрын
@@HeyFlutter thanks for response my question.i resolved this issue just change version of the audioplayers
@heyamawad9854
@heyamawad9854 2 жыл бұрын
thank you i have error after i add audioplayers: ^0.20.1 Because toku depends on audioplayers >=0.13.7 which requires Flutter SDK version >=1.10.0, version solving failed. pub get failed (1; Because toku depends on audioplayers >=0.13.7 which requires Flutter SDK version >=1.10.0, version solving failed.) and im searching alot to solve this error ,but i cant
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Hello, heyam awad! Follow this link: stackoverflow.com/questions/51474647/flutter-packages-get-failed-depends-on-flutter-test-any-from-sdk-which-requires, I hope it will solve your problem. Thank You 🙂
@mohitmarfatia7014
@mohitmarfatia7014 Жыл бұрын
Hello, how can I prevent audio from overlapping when multiple audios are played? Like pause the audio which was playing and play the audio which was recently clicked...
@HeyFlutter
@HeyFlutter Жыл бұрын
Hey, Mohit Marfatia 🙂 This has to be handled by the platform itself
@mohitmarfatia7014
@mohitmarfatia7014 Жыл бұрын
@@HeyFlutter Thank you for the reply. By platform, do you mean the audioplayers package?
@shobithp5303
@shobithp5303 2 жыл бұрын
hey through your prev video i build a voice recorder , and i tried to play that audio file from url , no error and slider also not moving
@shobithp5303
@shobithp5303 2 жыл бұрын
when i press the play button this exception occur Exception has occurred. PlatformException (PlatformException(Unexpected error!, uriString, java.lang.NullPointerException: uriString at android.net.Uri$StringUri.(Uri.java:490) at android.net.Uri$StringUri.(Uri.java:480) at android.net.Uri.parse(Uri.java:452) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1170) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1164) at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1131) at xyz.luan.audioplayers.WrappedMediaPlayer.actuallyPlay(WrappedMediaPlayer.kt:219) at xyz.luan.audioplayers.WrappedMediaPlayer.play(WrappedMediaPlayer.kt:205) at xyz.luan.audioplayers.AudioplayersPlugin.handleMethodCall(AudioplayersPlugin.kt:79) at xyz.luan.audioplayers.AudioplayersPlugin.onMethodCall(AudioplayersPlugin.kt:33) at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262) at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:296) at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:320) at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) , null))
@shobithp5303
@shobithp5303 2 жыл бұрын
@@HeyFlutter thanks for your beloved time, i got it right, it was due to setAudio() function, i placed those code to stop() function where recorder stops.
@shobithp5303
@shobithp5303 2 жыл бұрын
am using getx, so i think onInit calls only once right, is becasue of this the slider is not moving? please reply
@RahmatOfficialSkj
@RahmatOfficialSkj 2 жыл бұрын
Salam dari Indonesia sobat
@RahmatOfficialSkj
@RahmatOfficialSkj 2 жыл бұрын
@@HeyFlutter siap pak bos
@truonguc886
@truonguc886 2 ай бұрын
my duration variable is 0 when i playing audio local path
@HeyFlutter
@HeyFlutter 2 ай бұрын
Thank You @truonguc886! Follow this link: stackoverflow.com/questions/58999064/how-to-get-length-of-audio-file-without-playing-it-in-flutter-dart I hope you will get your answer 🙂
@ElnazAusArdSkelig
@ElnazAusArdSkelig Жыл бұрын
Can you send link in github to this mobile app? I want to see code
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Елназ Алмасулы!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
@novrizaledward3451
@novrizaledward3451 2 жыл бұрын
how to play with background service ? can u explain with video ?
@novrizaledward3451
@novrizaledward3451 2 жыл бұрын
@@HeyFlutter ok, nice i will waiting , thanks
@mscoca
@mscoca Жыл бұрын
Hi! How to make it work in FlutterFlow and in the background?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Manuel Salero! Follow this link: docs.flutterflow.io/widgets-and-components/widgets-ui-elements/base-elements/audioplayer I hope you will get your answer 🙂
@Προμηθεύς
@Προμηθεύς Жыл бұрын
Doesn't work on audioplayers 3.0.1. Half of the methods are gone.
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, D GK! 🙂. Try to provide enough details with yours question whenever you face any issue.
@alek4001
@alek4001 8 ай бұрын
How to fetch metadata from the url stream? Like Now playing: artist Name song Title
@HeyFlutter
@HeyFlutter 8 ай бұрын
Thank You @alek4001! Follow this link: stackoverflow.com/questions/64100094/how-can-i-fetch-the-metadata-of-audio-files-in-flutter I hope you will get your answer 🙂
@alek4001
@alek4001 8 ай бұрын
@@HeyFlutter Thank you very much. I havr already solved this problem using just audio package. It can retrieve Icymetadata
@small__smile
@small__smile Жыл бұрын
Hi. the package is not working on iOS 16. Do you have any update?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks for updating, 투자해서 행복해요! 🙂 will try to bring updated tutorial
@small__smile
@small__smile Жыл бұрын
@@HeyFlutter hi. It was a bug in the simulator of VSCODE. Thank you for your attention.
@harshgupta-ud9di
@harshgupta-ud9di 2 жыл бұрын
can you tell me, how i will get audio duration.. i already try your way but not working
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You harsh gupta! Follow this link: stackoverflow.com/questions/58999064/how-to-get-length-of-audio-file-without-playing-it-in-flutter-dart I hope you will get your answer 🙂
@combatcraz2254
@combatcraz2254 2 жыл бұрын
NotSupportedError: The element has no supported sources. getting this error when trying to play audio from assets
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Hello, CombatCraz! Follow this link: stackoverflow.com/questions/37674223/domexception-failed-to-load-because-no-supported-source-was-found, I hope it will solve your problem. Thank You 🙂
@alybauomy735
@alybauomy735 2 жыл бұрын
Hey Johannes i wanna ask about formatTime when i use final formatTime = new DateFormat(' hh:mm'); with init the code error in anthor thing like Directionality( textDirection: TextDirection.ltr,) any help to do formatTime without any problems
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank You Aly Bauomy! Follow this link: stackoverflow.com/questions/50758072/date-time-format-in-flutter-dd-mm-yyyy-hhmm I hope you will get your answer 🙂
@alybauomy735
@alybauomy735 2 жыл бұрын
@@HeyFlutter i already use all code datatime in this wep i just want your small datatime method that you use in this vedio
@singhsaabsingh650
@singhsaabsingh650 2 жыл бұрын
Hey NEED LIST BUILDER WITH LIST BUILDING ITEMS AND CLCIK OF LIST ITEMS SHOWS DATA IN DIFFERENT SCREEN......ALL DATA WILL BE FETCH FROM FIRESTORE 🥰🌹👍😇
@mohanbabu9723
@mohanbabu9723 Жыл бұрын
How to play audio from the last played position in flutter!!
@HeyFlutter
@HeyFlutter Жыл бұрын
Hey, Mohan babu 🙂 you can save duration somewhere in shared prefs or local db and can load audio from that duration
@kuttystoryindia
@kuttystoryindia Жыл бұрын
@@HeyFlutter Oh! such a simple man. Thank U
@hughfrost3219
@hughfrost3219 Жыл бұрын
Please make some videos like spotify playlist !
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks for the idea, Hugh Frost! 🙂 I have added it to my list of ideas for future videos!
@naufaladi4384
@naufaladi4384 Жыл бұрын
hi, just a suggestion, could you please use a more normal/ less-provocative picture since people usually watch this video at work/ school/ library. Thank you
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks for your feedback, naufal adi! 🙂
@prasaddhend5500
@prasaddhend5500 2 жыл бұрын
How to play audio saved in cache memory?
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Hey, Prasad Dhend! 🙂 check out this package : pub.dev/packages/just_audio_cache
@akhilanand5987
@akhilanand5987 2 жыл бұрын
i can listen to music but seeker is not working, i used same package version as your and its working in IOS simulator but not in android phones.
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you, akhil Anand! 🙂. Kindly update to the latest version and see if it works or not.
@akhilanand5987
@akhilanand5987 2 жыл бұрын
@@HeyFlutter i updated to newer version,problem still exit. its working on IOS simulator but not in android device
@akhilanand5987
@akhilanand5987 2 жыл бұрын
@@HeyFlutter is there any additional setting we need to do in android
@CodePie
@CodePie Жыл бұрын
Can't find this package
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Code Pie! Follow this link: pub.dev/packages/audioplayers I hope you will get your answer 🙂
@kgetgamingentertainmenttec8243
@kgetgamingentertainmenttec8243 Жыл бұрын
Hi I had a question as always great tutorial how would we make this work with multiple audio files if you can make a tutorial on that Thank you
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks for the idea, Kirubel Berhanu! 🙂 I have added it to my list of ideas for future videos!
@kgetgamingentertainmenttec8243
@kgetgamingentertainmenttec8243 Жыл бұрын
@@HeyFlutter Thanks 😁
@zannoudarius3032
@zannoudarius3032 Ай бұрын
looks like isLocal isnt defined 2:14
@HeyFlutter
@HeyFlutter Ай бұрын
Thanks for your feedback, @zannoudarius3032! 🙂
@prasannakhebade6457
@prasannakhebade6457 2 жыл бұрын
I cannot get the confirmation email for access
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, Prasanna Khebade! 🙂 Learn more about it here: github.com/JohannesMilke/sponsorware#2-why-didnt-i-get-an-email-even-if-i-have-sent-already-a-request-on-your-website
@chaitanyabharatdokara4978
@chaitanyabharatdokara4978 2 жыл бұрын
Using Assets getting Exoplayer error
@hasibulhasan-uu8hu
@hasibulhasan-uu8hu Жыл бұрын
totally the fucking Source Code downloads steps .
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You hasibul hasan!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
@maximebiloa6071
@maximebiloa6071 2 жыл бұрын
How to recover audio files automatically without using FilePicker?
@maximebiloa6071
@maximebiloa6071 2 жыл бұрын
@@HeyFlutter I want to create a local music player and I don't know how to get all the audio files from the device's storage automatically
@poopipie8574
@poopipie8574 2 жыл бұрын
How to play the audio from the asset
@poopipie8574
@poopipie8574 2 жыл бұрын
@@HeyFlutter thank you very much 🤗
@sumantrkurse1518
@sumantrkurse1518 Жыл бұрын
seturl method not working
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, Sumant R Kurse! 🙂. Try to provide enough details with your question whenever you face any issue.
@DANISHALI-gj5gt
@DANISHALI-gj5gt Жыл бұрын
i cant access to your git hub code
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You DANISH ALI!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
@thanveerpm3499
@thanveerpm3499 Жыл бұрын
What is format time ?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You Thanveer Pm! Follow this link: stackoverflow.com/questions/50758072/date-time-format-in-flutter-dd-mm-yyyy-hhmm I hope you will get your answer 🙂
Flutter Audio Recorder
2:33
HeyFlutter․com
Рет қаралды 38 М.
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 17 МЛН
Logo Matching Challenge with Alfredo Larin Family! 👍
00:36
BigSchool
Рет қаралды 7 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 17 МЛН
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
Flutter Tutorial - Implementing Audio Player | Just Audio Package
5:00
No Code App Development is a Trap
9:31
Coding with Dee
Рет қаралды 206 М.
Flutter ClipPath (Bezier Curves)
2:00
HeyFlutter․com
Рет қаралды 43 М.
Targeting Android 15 - Why Your App Is NOT Ready
8:41
Philipp Lackner
Рет қаралды 17 М.
Ever thought why We fail as Flutter Developer?
8:19
HeyFlutter․com
Рет қаралды 9 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 548 М.
What Are APIs? - Simply Explained
6:49
Simply Explained
Рет қаралды 879 М.
Always Check for the Hidden API when Web Scraping
11:50
John Watson Rooney
Рет қаралды 618 М.
My Workflow for Building any Streamlit Dashboard Project
9:40
Fanilo Andrianasolo
Рет қаралды 80 М.
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 17 МЛН