ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Flutter Audio Player (from URL, File, Assets)

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • 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: th-cam.com/users/JohannesMilke...
    👉 12 Week Flutter Training | heyflutter.com
    👉 Flutter Masterclass Courses | heyflutter.com/masterclass
    Source Code | github.com/JohannesMilke/audi...
    My Courses | heyflutter.com
    Follow Newsletter | johannesmilke.com/#/newsletter
    SUBSCRIBE HERE
    bit.ly/JohannesMilke
    SUPPORT & SPONSOR ME
    github.com/sponsors/JohannesM...
    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 :-)

ความคิดเห็น • 222

  • @HeyFlutter
    @HeyFlutter  2 ปีที่แล้ว +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: th-cam.com/video/j4mX0jtxWpA/w-d-xo.html
    Neumorphism Tutorial: th-cam.com/video/A2Bbhr3DGd0/w-d-xo.html
    Nested ListViews and Columns Tutorial: th-cam.com/video/ZpHuAbYWL3w/w-d-xo.html
    ChatApp UI Design Tutorial: th-cam.com/video/eGhvL082-Pc/w-d-xo.html
    Flexible Widget Tutorial: th-cam.com/video/5TwBXLZdVvk/w-d-xo.html
    Expanded Widget Tutorial: th-cam.com/video/N1FMX4rDn6Y/w-d-xo.html
    Spacer Widget Tutorial: th-cam.com/video/n4dJVUdj4ik/w-d-xo.html
    FittedBox Widget Tutorial: th-cam.com/video/WpTMNArnXdc/w-d-xo.html
    Flutter Layout Basics Tutorial: th-cam.com/video/yYxueTNIDlA/w-d-xo.html
    Row Layout Basics Tutorial: th-cam.com/video/lY5GtNkvyhM/w-d-xo.html
    Column Layout Basics Tutorial: th-cam.com/video/nW9pAyDs-wE/w-d-xo.html
    Expansion Tile Tutorial: th-cam.com/video/vRWY-IQAin0/w-d-xo.html
    Expansion Panel Tutorial: th-cam.com/video/r7L146d9YA8/w-d-xo.html
    Bottom Sheet Tutorial: th-cam.com/video/TXYuaiukw7E/w-d-xo.html
    Popup Dialog Tutorial: th-cam.com/video/4pn-_md5Ol4/w-d-xo.html
    Dropdown Menu Tutorial: th-cam.com/video/z0ihUbwlSHs/w-d-xo.html
    PageView Tutorial: th-cam.com/video/sFXg-phkbQU/w-d-xo.html
    Page Transition Animation Tutorial: th-cam.com/video/_R3E_aof69c/w-d-xo.html
    Horizontal ListView Tutorial: th-cam.com/video/baA_J5tUtEU/w-d-xo.html

    • @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 ปีที่แล้ว +8

    Your channel is a treasure for the flutter domain you are doing an amazing work thank you very much

  • @CodeZee
    @CodeZee 2 ปีที่แล้ว +2

    Once again, thanks a lot!. Needed this for one of my projects.

  • @sunderbhagwani
    @sunderbhagwani 2 ปีที่แล้ว +1

    Thank-you🙏🏻
    This is what I was looking for 😀.
    It will help me a lot in one of my project😄

  • @youssefidbella7094
    @youssefidbella7094 2 ปีที่แล้ว

    thank you so much, I spent a lot of time searching for this topic

  • @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 😀

  • @aknbozburun6293
    @aknbozburun6293 2 ปีที่แล้ว +1

    OMG it's just what i need right now. Thanks.

  • @Goldman189
    @Goldman189 2 ปีที่แล้ว +1

    Great lesson with great teacher thanks

  • @medo_xo6941
    @medo_xo6941 2 ปีที่แล้ว +1

    You are a great person You always saved me thanks 😊

  • @user-os2cw6qf7w
    @user-os2cw6qf7w 2 ปีที่แล้ว

    Wow, it's so easy! Thanks

  • @abhaytiwari6411
    @abhaytiwari6411 2 ปีที่แล้ว

    Thank you so much Milke 👍

  • @botanmh
    @botanmh 2 ปีที่แล้ว +1

    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

  • @hassanosama357
    @hassanosama357 2 ปีที่แล้ว

    Doing great, thanks for this video

  • @hayahesham2980
    @hayahesham2980 2 หลายเดือนก่อน

    You saved my life! Thanks A Lot!

    • @HeyFlutter
      @HeyFlutter  2 หลายเดือนก่อน +1

      Glad to hear that, You are most welcome @hayahesham2980

  • @danitakeuchi9221
    @danitakeuchi9221 2 ปีที่แล้ว

    Very awesome mr, thanks a lot

  • @dicksonguinajnr1449
    @dicksonguinajnr1449 2 ปีที่แล้ว

    Thank you so much my brother

  • @abhisheksinghal4470
    @abhisheksinghal4470 ปีที่แล้ว +1

    Thanks man !! for sharing this . Your content and explanation is really good and helpful for flutter community . Cheers !!

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว +1

      You are welcome, @abhisheksinghal4470 😊

  • @Mezix_learn
    @Mezix_learn 2 ปีที่แล้ว +1

    Hi, Can you put a video on full audio player app with list of songs to select

  • @Maystro_eg
    @Maystro_eg 2 ปีที่แล้ว

    Great video

  • @baxiry.
    @baxiry. 2 ปีที่แล้ว

    awesome !!

  • @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! 😊

  • @computerprogrammer9279
    @computerprogrammer9279 2 ปีที่แล้ว

    Yes bro You are the best

  • @techyakshay6868
    @techyakshay6868 2 ปีที่แล้ว

    You r awesome bro❤️

  • @jacd007-xt
    @jacd007-xt 2 ปีที่แล้ว +1

    Great tutorial, Great teacher, thanks, and with videos (network, file)?

  • @atultiwari7361
    @atultiwari7361 2 ปีที่แล้ว

    Next level ...

  • @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?

  • @anchorrealtynm7897
    @anchorrealtynm7897 ปีที่แล้ว

    Nice video, thanks.

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Glad you liked it, @anchorrealtynm7897 😀

  • @NavdeepPoet
    @NavdeepPoet 2 ปีที่แล้ว +7

    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 TH-cam.. Thank you Milke ….

    • @samuelkings9416
      @samuelkings9416 2 ปีที่แล้ว +1

      And also playing audio from a playlist. Thanks Mike

    • @NavdeepPoet
      @NavdeepPoet 2 ปีที่แล้ว

      @@HeyFlutter Welcome Dear ..

  • @hassanosama357
    @hassanosama357 2 ปีที่แล้ว

    Can you make a Background mp3 also. Great thanks

  • @davidkanai6944
    @davidkanai6944 2 ปีที่แล้ว

    awesome work, how about going to next or back song

  • @faridahmadov5991
    @faridahmadov5991 ปีที่แล้ว

    Thank you so much bro.Can you please teach how to rewind a audio by long pressing a button?

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว +1

      Thanks for the idea, Farid Ahmadov! 🙂 I have added it to my list of ideas for future videos!

  • @S-Lomar
    @S-Lomar 9 หลายเดือนก่อน

    Thanks for sharing ❤️💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕

    • @HeyFlutter
      @HeyFlutter  9 หลายเดือนก่อน

      You are welcome, @S-Lomar!

  • @mohammedzaheerf4126
    @mohammedzaheerf4126 3 หลายเดือนก่อน

    Great❤

    • @HeyFlutter
      @HeyFlutter  3 หลายเดือนก่อน

      Thanks, @mohammedzaheerf4126! 🙂

  • @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 🔥

  • @amrsamy9007
    @amrsamy9007 7 หลายเดือนก่อน

    💯 Thanks you are always my life savior

    • @HeyFlutter
      @HeyFlutter  7 หลายเดือนก่อน

      You are welcome, @amrsamy9007 😊

  • @riskzerobeatz
    @riskzerobeatz 2 ปีที่แล้ว +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.

  • @botanmh
    @botanmh ปีที่แล้ว +1

    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.

  • @bhabhayt398
    @bhabhayt398 2 ปีที่แล้ว

    Search data from local database in implement staggered grid view

  • @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.

  • @kwakukusi4094
    @kwakukusi4094 2 ปีที่แล้ว

    you're too much. Amazing videos. It's a shame I have not been able to watch your videos lately

  • @tarekrefaei90
    @tarekrefaei90 2 ปีที่แล้ว +1

    Thanks pro ... what if I want it to start automatically when the app start instead of using play btn ??

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      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 🙂

  • @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

  • @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.

  • @BosExplorify3043
    @BosExplorify3043 2 ปีที่แล้ว +1

    Amazing content 👍🏽 Will this work for radio streaming link? Thanks

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Thank You Bosun Olaniyan! Follow this link: pub.dev/packages/flutter_radio_player
      I hope you will get your answer 🙂

  • @jhancock7890
    @jhancock7890 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      Thank You J Hancock! Follow this link: stackoverflow.com/questions/71274141/playing-audio-from-assets-flutter
      I hope you will get your answer 🙂

  • @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 🙂

  • @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

  • @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 🙂

  • @hashankannangara8723
    @hashankannangara8723 2 ปีที่แล้ว

    😍😍😍

  • @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

  • @DoremiMali
    @DoremiMali 9 หลายเดือนก่อน

    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

  • @ManuMarea
    @ManuMarea ปีที่แล้ว

    this is so great...what about having a playlist?

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Thanks for suggestion, @ManuMarea! 🙂

  • @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 🙂

  • @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  ปีที่แล้ว +1

      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 🙂

  • @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

  • @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 🙂

  • @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 ปีที่แล้ว +1

      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 🙏

  • @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?

  • @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 🙂

  • @chaitanyabharatdokara4978
    @chaitanyabharatdokara4978 2 ปีที่แล้ว

    Using Assets getting Exoplayer error

  • @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 🙂

  • @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 🙂

  • @fresshsh8197
    @fresshsh8197 ปีที่แล้ว

    How can you play a youtube audio just the audio because this did not work for me

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Hey, @fresshsh8197 🙂 TH-cam urls are encoded so cannot be directly accessed. Please try this solution: th-cam.com/video/GQyWIur03aw/w-d-xo.html

  • @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 🙂

  • @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

  • @priyanshudutta9463
    @priyanshudutta9463 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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 🙂

  • @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 ปีที่แล้ว +1

      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 🙂

  • @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 🙂

  • @novrizaledward3451
    @novrizaledward3451 2 ปีที่แล้ว

    how to play with background service ? can u explain with video ?

    • @novrizaledward3451
      @novrizaledward3451 2 ปีที่แล้ว

      @@HeyFlutter ok, nice
      i will waiting , thanks

  • @alybauomy735
    @alybauomy735 ปีที่แล้ว

    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  ปีที่แล้ว

      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 ปีที่แล้ว

      @@HeyFlutter i already use all code datatime in this wep
      i just want your small datatime method that you use in this vedio

  • @harshgupta-ud9di
    @harshgupta-ud9di ปีที่แล้ว

    can you tell me, how i will get audio duration.. i already try your way but not working

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      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 🙂

  • @yousefabdelnaby3555
    @yousefabdelnaby3555 11 หลายเดือนก่อน

    thanks for the exerted effort , I face an issue children: [
    Text(formatTime(position)),
    Text(formaTime(duration)),
    ]
    it doesn't recognize formatTime

    • @HeyFlutter
      @HeyFlutter  11 หลายเดือนก่อน

      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

  • @amandwivedi7413
    @amandwivedi7413 8 หลายเดือนก่อน

    How to play the audio when the app is in background?

    • @HeyFlutter
      @HeyFlutter  8 หลายเดือนก่อน

      Thank You @amandwivedi7413! Follow this link: stackoverflow.com/questions/61688915/playing-audio-in-the-background-using-flutter
      I hope you will get your answer 🙂

  • @amandwivedi7413
    @amandwivedi7413 9 หลายเดือนก่อน

    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  9 หลายเดือนก่อน +1

      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 9 หลายเดือนก่อน

      @@HeyFlutter Thank you so much

  • @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

  • @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.

  • @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 🥰🌹👍😇

  • @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 🙂

  • @sarathrkrishnan6610
    @sarathrkrishnan6610 2 ปีที่แล้ว

    ❤️

  • @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

  • @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  ปีที่แล้ว +1

      Thanks for the idea, Kirubel Berhanu! 🙂 I have added it to my list of ideas for future videos!

    • @kgetgamingentertainmenttec8243
      @kgetgamingentertainmenttec8243 ปีที่แล้ว

      @@HeyFlutter Thanks 😁

  • @almightykodadon
    @almightykodadon ปีที่แล้ว +1

    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  ปีที่แล้ว +2

      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

  • @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.

  • @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 🙂

  • @ElnazAusArdSkelig
    @ElnazAusArdSkelig ปีที่แล้ว

    Can you send link in github to this mobile app? I want to see code

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว +1

      Thank You Елназ Алмасулы!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware

  • @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

  • @poopipie8574
    @poopipie8574 2 ปีที่แล้ว

    How to play the audio from the asset

    • @poopipie8574
      @poopipie8574 2 ปีที่แล้ว

      @@HeyFlutter thank you very much 🤗

  • @RahmatOfficialSkj
    @RahmatOfficialSkj 2 ปีที่แล้ว

    Salam dari Indonesia sobat

  • @pamo8198
    @pamo8198 2 ปีที่แล้ว

    does the url work with youtube link ?

  • @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 ปีที่แล้ว +1

      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

  • @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

  • @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

  • @yadhuvtk
    @yadhuvtk 2 ปีที่แล้ว

    Can I make this plugin from scratch tutorial?

  • @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 🙂

  • @Santoshkumar-hr5kj
    @Santoshkumar-hr5kj 2 ปีที่แล้ว

    Source code not available on github

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Santosh kumar!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware

  • @triandrewicaksono5553
    @triandrewicaksono5553 2 ปีที่แล้ว

    can i use html.File?

    • @triandrewicaksono5553
      @triandrewicaksono5553 2 ปีที่แล้ว

      what i meant is, i need to play audio using base64 supplied from the backend, from the tutorial i see that we can play audio using File (from dart.io), what i ask, can i play the audio using File(from dart.html) since im currently on Web

  • @truonguc886
    @truonguc886 หลายเดือนก่อน

    my duration variable is 0 when i playing audio local path

    • @HeyFlutter
      @HeyFlutter  หลายเดือนก่อน

      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 🙂

  • @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

  • @Προμηθεύς
    @Προμηθεύς ปีที่แล้ว

    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.

  • @osamaomran6306
    @osamaomran6306 2 ปีที่แล้ว

    can you send me the code, please?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Hey, Osama 🥀 Omran 🙂 you can access it by subscribing on github