Flutter Audio Player (from URL, File, Assets)

Sdílet
Vložit
  • čas přidán 28. 07. 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: czcams.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 :-)
  • Věda a technologie

Komentáře • 222

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

    • @fabricenyl6504
      @fabricenyl6504 Před rokem

      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 Před 2 lety +8

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

  • @CodeZee
    @CodeZee Před 2 lety +2

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

  • @sunderbhagwani
    @sunderbhagwani Před 2 lety +1

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

  • @aknbozburun6293
    @aknbozburun6293 Před 2 lety +1

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

  • @marcodrochner7166
    @marcodrochner7166 Před 8 měsíci

    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  Před 7 měsíci

      Glad you liked it, @marcodrochner7166 😀

  • @youssefidbella7094
    @youssefidbella7094 Před 2 lety

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

  • @medo_xo6941
    @medo_xo6941 Před 2 lety +1

    You are a great person You always saved me thanks 😊

  • @abhisheksinghal4470
    @abhisheksinghal4470 Před rokem +1

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

    • @HeyFlutter
      @HeyFlutter  Před rokem +1

      You are welcome, @abhisheksinghal4470 😊

  • @hassanosama357
    @hassanosama357 Před 2 lety

    Doing great, thanks for this video

  • @user-os2cw6qf7w
    @user-os2cw6qf7w Před 2 lety

    Wow, it's so easy! Thanks

  • @botanmh
    @botanmh Před 2 lety +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

  • @Goldman189
    @Goldman189 Před 2 lety +1

    Great lesson with great teacher thanks

  • @pulkitsaxena2202
    @pulkitsaxena2202 Před 2 lety

    Great tutorial Johannes, quick question - how can i continue playing the song as i navigate away to other screens in the same app?

  • @Mezix_learn
    @Mezix_learn Před 2 lety +1

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

  • @abhaytiwari6411
    @abhaytiwari6411 Před 2 lety

    Thank you so much Milke 👍

  • @danitakeuchi9221
    @danitakeuchi9221 Před 2 lety

    Very awesome mr, thanks a lot

  • @dicksonguinajnr1449
    @dicksonguinajnr1449 Před 2 lety

    Thank you so much my brother

  • @jacd007-xt
    @jacd007-xt Před 2 lety +1

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

  • @hayahesham2980
    @hayahesham2980 Před 2 měsíci

    You saved my life! Thanks A Lot!

    • @HeyFlutter
      @HeyFlutter  Před 2 měsíci +1

      Glad to hear that, You are most welcome @hayahesham2980

  • @Abdul_Hadi_Maliky
    @Abdul_Hadi_Maliky Před rokem

    Thank you so much sir. your channel is the best channel I have ever subscribed. you are the boss of Flutter engine.

    • @HeyFlutter
      @HeyFlutter  Před rokem

      Glad to hear that, Thank you Maliky! 😊

  • @techyakshay6868
    @techyakshay6868 Před 2 lety

    You r awesome bro❤️

  • @ertugodabasi
    @ertugodabasi Před 2 lety

    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 Před 2 lety

      ​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.

  • @riskzerobeatz
    @riskzerobeatz Před 2 lety +2

    Hi. Thnks for the great tutorial. (formatTime(position)) gives me an error. Could you tell me why is that?

    • @anmolsharma9539
      @anmolsharma9539 Před 2 lety

      formatTime is a custom method he has shown it in the upper part of the screen when he write them.

  • @baxiry.
    @baxiry. Před 2 lety

    awesome !!

  • @hassanosama357
    @hassanosama357 Před 2 lety

    Can you make a Background mp3 also. Great thanks

  • @computerprogrammer9279

    Yes bro You are the best

  • @Maystro_eg
    @Maystro_eg Před 2 lety

    Great video

  • @tarekrefaei90
    @tarekrefaei90 Před 2 lety +1

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

    • @HeyFlutter
      @HeyFlutter  Před 2 lety +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 🙂

  • @anchorrealtynm7897
    @anchorrealtynm7897 Před rokem

    Nice video, thanks.

    • @HeyFlutter
      @HeyFlutter  Před rokem

      Glad you liked it, @anchorrealtynm7897 😀

  • @NavdeepPoet
    @NavdeepPoet Před 2 lety +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 CZcams.. Thank you Milke ….

  • @hit-boy1348
    @hit-boy1348 Před 2 lety

    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  Před 2 lety +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 🙂

    • @hit-boy1348
      @hit-boy1348 Před 2 lety

      @@HeyFlutter thanks 🙏

  • @naturalandforests8012

    hello ddear.....why audioPlayer.onAudioPositionChanged method auto starts after some seconds...and resets the position to zero...

    • @HeyFlutter
      @HeyFlutter  Před rokem

      Hey 😊, @naturalandforests8012! Check out this solution: stackoverflow.com/a/65173226 I hope this may help you

  • @jhancock7890
    @jhancock7890 Před rokem +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  Před rokem +1

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

  • @sepehramini6904
    @sepehramini6904 Před rokem

    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  Před rokem

      Thank you, Sepehr Amini! 🙂. Try to paste the error message with your question whenever you face any issue or error.

  • @FilminTamil
    @FilminTamil Před rokem

    is it possible that we are able to build the flutter app for video to audio converter ???

    • @HeyFlutter
      @HeyFlutter  Před rokem

      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 🙂

  • @shakirali4122
    @shakirali4122 Před rokem

    hello sir, how can I create a playlist and enable the next and back button for this audio player?

    • @HeyFlutter
      @HeyFlutter  Před rokem

      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 🙂

  • @atultiwari7361
    @atultiwari7361 Před 2 lety

    Next level ...

  • @botanmh
    @botanmh Před rokem +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  Před rokem

      Thank you, Botan Muhamad! 🙂. There is no specific reason for that you can use any of them.

  • @MrIMacro
    @MrIMacro Před 9 měsíci

    could you please show us how to add loop function?

    • @HeyFlutter
      @HeyFlutter  Před 9 měsíci

      Thanks for the idea @MrIMacro 😀, i have added it in my list of future videos

  • @faridahmadov5991
    @faridahmadov5991 Před rokem

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

    • @HeyFlutter
      @HeyFlutter  Před rokem +1

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

  • @hiraS4134
    @hiraS4134 Před 2 lety

    How can i fast-foward and rewind-back the audio? I'm unable to do so usibg the audioPlayer package

    • @HeyFlutter
      @HeyFlutter  Před 2 lety

      Thanks for the idea Hira Sharif 😀, i have added it in my list of future videos

  • @davidkanai6944
    @davidkanai6944 Před 2 lety

    awesome work, how about going to next or back song

  • @salmakhaled8024
    @salmakhaled8024 Před rokem

    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  Před rokem

      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 🙂

  • @jayswalviraj4528
    @jayswalviraj4528 Před 2 lety

    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  Před 2 lety

      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 Před rokem

    Thanks for video! where do i get the urls to test in my app? can you make it available?

    • @HeyFlutter
      @HeyFlutter  Před rokem

      Hey, @adrielsilva8685 🙂 there are many open source audios you can use

  • @abdullahkhaled6907
    @abdullahkhaled6907 Před 2 lety

    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  Před 2 lety

      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 Před rokem

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

    • @HeyFlutter
      @HeyFlutter  Před rokem

      Hey, @fresshsh8197 🙂 CZcams urls are encoded so cannot be directly accessed. Please try this solution: czcams.com/video/GQyWIur03aw/video.html

  • @S-Lomar
    @S-Lomar Před 8 měsíci

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

  • @mohitmarfatia7014
    @mohitmarfatia7014 Před rokem

    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  Před rokem

      Hey, Mohit Marfatia 🙂 This has to be handled by the platform itself

    • @mohitmarfatia7014
      @mohitmarfatia7014 Před rokem

      @@HeyFlutter Thank you for the reply. By platform, do you mean the audioplayers package?

  • @BosExplorify3043
    @BosExplorify3043 Před 2 lety +1

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

    • @HeyFlutter
      @HeyFlutter  Před 2 lety +1

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

  • @AT-Corporation
    @AT-Corporation Před rokem

    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  Před rokem +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 🙂

  • @bhabhayt398
    @bhabhayt398 Před 2 lety

    Search data from local database in implement staggered grid view

  • @priyanshudutta9463
    @priyanshudutta9463 Před rokem +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 Před rokem +1

      Wrap your url with UrlSource widget

    • @HeyFlutter
      @HeyFlutter  Před rokem

      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 🙂

  • @alybauomy735
    @alybauomy735 Před rokem

    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  Před rokem

      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 Před rokem

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

  • @amrsamy9007
    @amrsamy9007 Před 7 měsíci

    💯 Thanks you are always my life savior

    • @HeyFlutter
      @HeyFlutter  Před 7 měsíci

      You are welcome, @amrsamy9007 😊

  • @vikaskumargupta7035
    @vikaskumargupta7035 Před 2 lety

    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  Před 2 lety

      No Worries vikas kumar Gupta, make sure to follow the tutorial step by step 🙂

  • @harshgupta-ud9di
    @harshgupta-ud9di Před rokem

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

    • @HeyFlutter
      @HeyFlutter  Před rokem

      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 🙂

  • @user-tr9yb2cl4j
    @user-tr9yb2cl4j Před 11 měsíci

    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  Před 11 měsíci

      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 🙂

  • @mscoca
    @mscoca Před rokem

    Hi! How to make it work in FlutterFlow and in the background?

    • @HeyFlutter
      @HeyFlutter  Před rokem

      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 🙂

  • @sunilgohel7889
    @sunilgohel7889 Před 2 lety

    How to make custom check box in list view and selection of check box

    • @HeyFlutter
      @HeyFlutter  Před 2 lety

      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 🙂

  • @DoremiMali
    @DoremiMali Před 9 měsíci

    Hi, can you make a tutorial for creating an audio playlist with rootbundle assets/audio. Please

    • @HeyFlutter
      @HeyFlutter  Před 9 měsíci

      Thanks for the idea @DoremiMali 😀, i have added it in my list of future videos

  • @amandwivedi7413
    @amandwivedi7413 Před 8 měsíci

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

    • @HeyFlutter
      @HeyFlutter  Před 8 měsíci

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

  • @novrizaledward3451
    @novrizaledward3451 Před 2 lety

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

  • @abelayinde
    @abelayinde Před rokem

    the formatTime(position) is throwing red line. who knows why please?

    • @HeyFlutter
      @HeyFlutter  Před rokem

      Thank you, abel ayinde! 🙂. Try to paste the error message with your question whenever you face any issue or error.

  • @warunakaushalya4157
    @warunakaushalya4157 Před 2 lety

    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 🔥

  • @mohammedzaheerf4126
    @mohammedzaheerf4126 Před 3 měsíci

    Great❤

    • @HeyFlutter
      @HeyFlutter  Před 2 měsíci

      Thanks, @mohammedzaheerf4126! 🙂

  • @shobithp5303
    @shobithp5303 Před 2 lety

    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 Před 2 lety

      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 Před 2 lety

      @@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 Před 2 lety

      am using getx, so i think onInit calls only once right, is becasue of this the slider is not moving? please reply

  • @amandwivedi7413
    @amandwivedi7413 Před 9 měsíci

    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  Před 9 měsíci +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 Před 9 měsíci

      @@HeyFlutter Thank you so much

  • @heyamawad9854
    @heyamawad9854 Před 2 lety

    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  Před 2 lety +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 🙂

  • @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  Před rokem

      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 Před rokem

      @@HeyFlutter thanks for response my question.i resolved this issue just change version of the audioplayers

  • @CodePie
    @CodePie Před rokem

    Can't find this package

    • @HeyFlutter
      @HeyFlutter  Před rokem

      Thank You Code Pie! Follow this link: pub.dev/packages/audioplayers
      I hope you will get your answer 🙂

  • @combatcraz2254
    @combatcraz2254 Před 2 lety

    NotSupportedError: The element has no supported sources. getting this error when trying to play audio from assets

    • @HeyFlutter
      @HeyFlutter  Před 2 lety

      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 🙂

  • @small__smile
    @small__smile Před rokem

    Hi. the package is not working on iOS 16. Do you have any update?

    • @HeyFlutter
      @HeyFlutter  Před rokem

      Thanks for updating, 투자해서 행복해요! 🙂 will try to bring updated tutorial

    • @small__smile
      @small__smile Před rokem

      @@HeyFlutter hi. It was a bug in the simulator of VSCODE. Thank you for your attention.

  • @kwakukusi4094
    @kwakukusi4094 Před 2 lety

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

  • @chaitanyabharatdokara4978

    Using Assets getting Exoplayer error

  • @prasaddhend5500
    @prasaddhend5500 Před 2 lety

    How to play audio saved in cache memory?

    • @HeyFlutter
      @HeyFlutter  Před 2 lety

      Hey, Prasad Dhend! 🙂 check out this package : pub.dev/packages/just_audio_cache

  • @ElnazAusArdSkelig
    @ElnazAusArdSkelig Před rokem

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

    • @HeyFlutter
      @HeyFlutter  Před rokem +1

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

  • @ManuMarea
    @ManuMarea Před rokem

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

    • @HeyFlutter
      @HeyFlutter  Před rokem

      Thanks for suggestion, @ManuMarea! 🙂

  • @prasannakhebade6457
    @prasannakhebade6457 Před 2 lety

    I cannot get the confirmation email for access

    • @HeyFlutter
      @HeyFlutter  Před 2 lety

      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

  • @DANISHALI-gj5gt
    @DANISHALI-gj5gt Před rokem

    i cant access to your git hub code

    • @HeyFlutter
      @HeyFlutter  Před rokem

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

  • @singhsaabsingh650
    @singhsaabsingh650 Před 2 lety

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

  • @akhilanand5987
    @akhilanand5987 Před 2 lety

    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  Před 2 lety +1

      Thank you, akhil Anand! 🙂. Kindly update to the latest version and see if it works or not.

    • @akhilanand5987
      @akhilanand5987 Před 2 lety

      @@HeyFlutter i updated to newer version,problem still exit. its working on IOS simulator but not in android device

    • @akhilanand5987
      @akhilanand5987 Před 2 lety

      @@HeyFlutter is there any additional setting we need to do in android

  • @pamo8198
    @pamo8198 Před 2 lety

    does the url work with youtube link ?

  • @yousefabdelnaby3555
    @yousefabdelnaby3555 Před 11 měsíci

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

    • @HeyFlutter
      @HeyFlutter  Před 11 měsíci

      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

  • @almightykodadon
    @almightykodadon Před rokem +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  Před rokem +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 Před rokem

      @@HeyFlutter I will check this out

  • @poopipie8574
    @poopipie8574 Před 2 lety

    How to play the audio from the asset

    • @poopipie8574
      @poopipie8574 Před 2 lety

      @@HeyFlutter thank you very much 🤗

  • @hashankannangara8723
    @hashankannangara8723 Před 2 lety

    😍😍😍

  • @thanveerpm3499
    @thanveerpm3499 Před rokem

    What is format time ?

    • @HeyFlutter
      @HeyFlutter  Před rokem

      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 🙂

  • @alek4001
    @alek4001 Před 8 měsíci

    How to fetch metadata from the url stream? Like Now playing: artist Name song Title

    • @HeyFlutter
      @HeyFlutter  Před 8 měsíci

      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 Před 8 měsíci

      @@HeyFlutter Thank you very much. I havr already solved this problem using just audio package. It can retrieve Icymetadata

  • @Προμηθεύς
    @Προμηθεύς Před rokem

    Doesn't work on audioplayers 3.0.1. Half of the methods are gone.

    • @HeyFlutter
      @HeyFlutter  Před rokem

      Thank you, D GK! 🙂. Try to provide enough details with yours question whenever you face any issue.

  • @triandrewicaksono5553
    @triandrewicaksono5553 Před 2 lety

    can i use html.File?

    • @triandrewicaksono5553
      @triandrewicaksono5553 Před 2 lety

      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

  • @Santoshkumar-hr5kj
    @Santoshkumar-hr5kj Před 2 lety

    Source code not available on github

    • @HeyFlutter
      @HeyFlutter  Před 2 lety

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

  • @sumantrkurse1518
    @sumantrkurse1518 Před rokem

    seturl method not working

    • @HeyFlutter
      @HeyFlutter  Před rokem

      Thank you, Sumant R Kurse! 🙂. Try to provide enough details with your question whenever you face any issue.

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

  • @truonguc886
    @truonguc886 Před měsícem

    my duration variable is 0 when i playing audio local path

    • @HeyFlutter
      @HeyFlutter  Před měsícem

      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 🙂

  • @osamaomran6306
    @osamaomran6306 Před rokem

    can you send me the code, please?

    • @HeyFlutter
      @HeyFlutter  Před rokem +1

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

  • @maximebiloa6071
    @maximebiloa6071 Před 2 lety

    How to recover audio files automatically without using FilePicker?

    • @maximebiloa6071
      @maximebiloa6071 Před 2 lety

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

  • @sarathrkrishnan6610
    @sarathrkrishnan6610 Před 2 lety

    ❤️

  • @RahmatOfficialSkj
    @RahmatOfficialSkj Před 2 lety

    Salam dari Indonesia sobat