Flutter Audio Player Tutorial Step By Step | Flutter Music Player | Flutter audioplayer

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024

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

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

    man I just watched 15 mins of the video and I am already in love the way you teach. what a blessing you are. thank you

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

      Wow, thank you!

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

      @@dbestech hey man. I am facing a problem with the audioplayers.
      :audioplayers:compileDebugKotlin
      How can I fix this man? Your help would mean world for me.

    • @KrishnaRockstar-xc7kg
      @KrishnaRockstar-xc7kg 2 ปีที่แล้ว +1

      @@dbestech Please share code bro or atleast share the link of audio.mp3 u used their

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

      @@KrishnaRockstar-xc7kg Hi Krisha, please find me on twitter
      it's @dbestech

  • @praseethashanmugam9496
    @praseethashanmugam9496 15 ชั่วโมงที่ผ่านมา

    thank you so much for this tutorial. i felt like i am creating my own app...it gives so much confident.

  • @yakut54
    @yakut54 7 หลายเดือนก่อน +1

    Buddy, everything worked out. It's all great! Thanks again. Just one thing. The links to the tracks that you suggest in books.json were causing an error. I replaced them, and now everything works perfectly. Now I know how to write audioplayer.

    • @dbestech
      @dbestech  7 หลายเดือนก่อน +1

      Awesome thank you!

  • @abdulwadood8327
    @abdulwadood8327 3 ปีที่แล้ว +3

    15 mins into video and i subscribed, we want to see more from you, you are doing great brother.

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      You are most welcome

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

    Закончил смотреть предыдущий урок. Это было круто! Поехали дальше!!!

    • @dbestech
      @dbestech  7 หลายเดือนก่อน +1

      Once again, I don't understand the language.

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

    tnx very much for your great educational video, 2 Question: 1: how can we play from asset(local) instead of URL? 2: during the playing, time step and Slider does not word ( do not go forward automatically)

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

    J'ai liké la vidéo, puis je me suis abonné sur ta chaîne juste après 1 minute en déroulant ta description. T'es un vrai GOAT frère 🤩🤩

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

      thank you.

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

      @@dbestech how to add the equalizer option? I am a beginner I do not have too much experience in the field thank you.

  • @amanuellegesse4314
    @amanuellegesse4314 3 ปีที่แล้ว +7

    @dbesttech helped me alot in my school project thanks to you i did great, this is an appreciation comment, we hop on seeing you on more videos

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      You are most welcome.

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

    Very nice and details explanation thankyou so much 🙏🏼🙏🏼🙏🏼

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

      So nice of you

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

    The argument type 'String' can't be assigned to the parameter type 'Source'. solution for this?

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

    tnx man

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

    awesome video love your teaching style. i learned alot

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

      Glad to hear it!

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

    Thank you so much, man.💌

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

      You're welcome!

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

    Sir, Thank you very much for this tutorial 🙏

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

      You are most welcome

  • @NinasPussy
    @NinasPussy 3 ปีที่แล้ว +6

    So, I don't want the Audioplayer to stop when i leave the detail_audio_page, I want the Audio to play in the background. When i go back to home and press on another book, the new Audio will overlap the currently playing audio. So how do I stop the Audio from playing when i press on another Book in the list? I think i might have to call the audioplayer in the home view, but I don't know how. Can you help me?

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

      Playing the audio player in the background is pretty easy. Just don't stop the audio instance.
      Regarding other part, Your current logic is ok. Yes you have to create global instance of audio player from home view. But it's a bit more difficult process. It involves managing state variable globally. We might need to use bloc or getx to do that. Other way, is to create an audio instance with id which is described here pub.dev/packages/audioplayers in this link. Go at the bottom.

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

      were you able to implement it? I also want this functionality in my app.

  • @samu.2425
    @samu.2425 2 ปีที่แล้ว +2

    can you share the code please

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

    this.widget.advancedPlayer.onAudioPositionChanged.listen((p) is depricated, how should I replace it? same as setUrl(path) is not defined for this audioplayer, how can I repair the errors? Help - thanks

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

      Hi, www.dbestech.com/tutorials/flutter-e-book-reading-app-using-audio-player follow this link, I have updated it. Let me know further problems.

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

    Hey. This is EXACTLY what im looking for. Im trying to create an app like this for my girlfriend.
    The thing is that i want to add my own mp3s instead of from a server. How do i do that?
    + how do i program that when you stop it plays again at the same spot you hit stop? :)

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

    Bro Where is the JSON file Link you added on String URL PATH in Audio_file.dart. it is not provided in resource file as well

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

      Check out the comment section

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

      @@dbestech couldnt find anything bro

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

    Helped me a lot, thx dude

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

      You are welcome

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

    thank you man you are really awsome ,i learn a lot of from you ,i wish you will make flutter app node js as backend ,thank you god bless you

  • @Berke-Khan
    @Berke-Khan 3 ปีที่แล้ว

    thanks for detailed steps

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      Most welcome

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

    Thanks a lot for the tutorial. I got an issue. I cannot pass the audio path unless I add source(path), and I still cannot play the audio. How do we play local audios please? Thanks again!

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

    Love From INDIA ❤️

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

      Thank you

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

    wonderful

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      You are most welcome

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

    Thank you for the video when will you make a video player like this ???

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

    thanks, great tutorial

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

      You're welcome!

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

    Hello sir I am very thankful to u...u have explained so nicely ....I have just one question I successfully played audio from internet on chrome...but I unable to play it on andriod

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

    Big support 💙

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

    Thank you very much 💓💓💓💓

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

      You're welcome 😊

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

    hiya, today I learned flutter by following your tutorial which is fantastic. And did you say that you are in China? which city are you in exactly. BTW, I am in ShenZhen.

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      You are most welcome. I happy to know that, it helped you. I am in Shanghai. I am a foreigner though. and Thanks again for following

    • @linweishuo5964
      @linweishuo5964 3 ปีที่แล้ว

      @@dbestechNow that you're working in SH, You're Shanghainese now.LOL. Great Job for the tutorials. I can learn a lot from your channel.

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      @@linweishuo5964 hahah. yeah. I am half Shanghainese.

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      I would appreciate a lot if you share the link on facebook or twitter.

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

    good tutorial, but I was looking forward to next and previous to go to the next audio and the previous video

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

      There is a video tutorial. Did you check it out?

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

    Please Sir, can you add a background functionality with audio service if you dont mind. I complete the project and learned a lot. Thank you so much

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

      Thanks. I will try to make a better one

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

      Appreciate that, looking forward to see it inshAllah. Thank you@@dbestech

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

    when playing finishes it crashes, rather how to do like after complete pause and seek to zero position

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

    Firstly, I must thank you for putting in such a great effort for all of us to understand the flutter concepts. One question: how can I show a circular loading icon when the audio is buffering, is there an event to know if the audio is in buffering state?

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

      I haven't tried that yet

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

    Man ur teaching really good and your the best but how can I make it login with saving playlist and running the song notification as well as making it friendly with the dynamic island of iphone 14 and so on how can I make those or at least can you make a course for it?

  • @MrCamdere
    @MrCamdere 3 ปีที่แล้ว

    youtube downloader/ converter could be very cool bro !

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      Thank you bro.

  • @manhngo2724
    @manhngo2724 3 ปีที่แล้ว

    great, thank u

  • @rajoanrahman194
    @rajoanrahman194 3 ปีที่แล้ว

    very helpful

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      You are most welcome. If possible pls share the tutorial to facebook groups. It would encourage me to make better tutorials in future.

  • @KrishnaRockstar-xc7kg
    @KrishnaRockstar-xc7kg 2 ปีที่แล้ว

    Great work and great works bro learniing alot from your channel .. Can u please share the link of code ??

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

    A/s Sir, can you please make a complete tutorial for mx player or similar video player with Full control of zoom and other, I looked in hole TH-cam and Git but couldn't find. You are my last hope.

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

    hello sir, how to play next audio automatically and how to put next and previous button to play track?

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

    ineed source code with asstes jesson local audio files please

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

    ‏Thank you for a nice tutorial . I want to use just audio package in flutter project but i want use it with sdk dependency “sdk: ">=2.7.0

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

      Hi Lujjain, I haven't restricted any version there. If you want version specific, you may need to change some syntax. Not much though.

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

    Thank you for this powerful vidoe but one quastion is setPlaybackRate(); deprecated or not ?

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

    hi brother thank u so much for this tutorial , but i have small problem when I test the app in real ios device the audio paly throw call speaker not the main speaker :( , is there any way to make it use the main speaker ?

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

    Can you please tell me how to go to next and previous song? I need it urgently. Thanks in advance

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

    hello friend is an excellent video, my congratulations. but I have a doubt: at the end of the audio it puts an error screen with this message " Failed assertion: line 165 pos 15: 'value >= min && value

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      Ok. Let me take a look. Thanks for getting back to me.

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

      @@dbestech same thing , paly correct in android, and this error in iOS

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

    Can you let us know, how we can display a Text at specific time of the audio?
    I am trying show some texts as a summary of an audio which is playing. I need to display at the very specific time of audio, some texts.
    Can you please give me clue about this ?
    Thanks

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

      1. get the current duration
      2. check it matches your expected duration
      3. display the text text
      CODE (put each code at appropriate postion)
      bool isTextshow false;
      if (_position.inSeconds == 60) {
      setState(() {
      isTextshow = true;
      });
      }
      isTextShow ? Text("Some text to show") : Container();

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

    Hi, is it possible to make timeline to move smooth? Will be a great feature!

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

      Yes, absolutely. I will update it in future.

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

      @@dbestech is there any updates? I've made smooth slider, but it's lagging when I'm moving it

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

    how can get musics from phone storage
    instead of from url

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

    Sir how can i achieve this "When i quit the app and come back later ,the music player should play from the last place where it had stopped" (similar to udemy video functionality ).i have mailed you as well sir.Hope your answer will help us

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

      How did you fetched the mp3?

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

    @dbstech sir when I add the package it says "Connection closed before full header was received"! Is anyone here who can tell how to solve it?

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

    Hello sir,
    Can you please make a video about audio service plugin to show audio playing in notification panel and lockscreen

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

      Hi Sarang, I will try to cover in future tutorials.

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

    how to still play music when move to other page. and when you back in previous page you can pause music playing ???

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

      onPressed: (){
      Navigator.of(context).pop();
      advancedPlayer.stop();
      }, here remove the stop function. You would be able to play.

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

    hi, it says to visit your patreon for source code etc but there are only 8 projects and this is not included?

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

      Its' there name as auido player. Let me know if you find it or not

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

      @@dbestech sorry, there I see only 8 projects, couldn't find it

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

    Is this play in background?

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

    how can we upload mp3 from google drive?

  • @gooseman4776
    @gooseman4776 9 วันที่ผ่านมา

    LateInitializationError: Field 'advancedPlayer' has not been initialized. How to solve?

    • @dbestech
      @dbestech  6 วันที่ผ่านมา

      Create a player from it. Show me the timeline

    • @gooseman4776
      @gooseman4776 6 วันที่ผ่านมา

      ​@@dbestech Starting in 35:58. I was doing same thing but i got red screen error "Field 'advancedPlayer' has not been initiazed"

    • @dbestech
      @dbestech  6 วันที่ผ่านมา

      @@gooseman4776 here it does not seem like a problem. Make sure you have audioPlayer=AudioPlayer() in the init state

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

    Привет из злой России! 😂
    Мужик, спасибо тебе за науку!😎

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

      What’s this ?

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

      @@dbestech Thank you for the knowledge! 😎

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

      @@yakut54 most welcome

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

    Will this app play the audio in the background after minimising the app as well?

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

      For now it does. But you can follow the link below to stop it when the minimize the app. stackoverflow.com/questions/61678052/flutter-music-plays-after-closing-application but it needs some restructure of the app though.

    • @shamiljamion2024
      @shamiljamion2024 3 ปีที่แล้ว

      @@dbestech Cool. Thank you!

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      @@shamiljamion2024 You are welcome

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

    He'll teacher I have a problem when I try play music by play() in new update i cannot get setUrl() you can get setSourceUrl and than when you try play Music it Say String can not assigned the parameter typ SOURCE plz help me I am taird to solov problem

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

      You should stick to my audio_player plugin version number. I think you are using a newer version of the audio player.

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

      @@dbestech thanks Teacher for Replay 💞Yes I use New Version Do you Know I solve the problem by other way I make ne var d = this.widget.audioPath
      Than make Source x = UrlSource(d)
      Than play(x);

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

    Thank you for this tutorial . I want to play music in json from server can tell me how can i make that usin firebase

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

      do you know how to return json format from firebase? If you knew it would be the same.

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

      @@dbestech now i dont know if you have a tutorial about how can i return json data from firebase

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

    I'm looking at tutorials to create music playlists and I basically want to know, is this something that can be put on the Play Store or are there legalities to be concerned about with royalties? Being that it's from a url, I'm not sure how that would be worked out.

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

      You can use, all the code for free.

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

    man your intro music volume is too loud and your mic volumes is too low, it makes me really uncomfortable to watch, next time please make the music on your intro and your mic voice as always at the same lavel through out entire video

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

    Brother , I have accessed data from from local storage to the player but I am unable to delete the file directly from the player . How can I do that

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

      I haven't tested it. But you can not really delete from your device memory. If you use SharedPreferences then you can delete them.

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

    RangeError (index): Invalid value: Only valid value is 0: 1
    im getting this error when i'm going to open different data in the listiview.

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

      from which line you get this error? or what's the time in the video? So that I can take a look

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

    Bru
    Evey time you mack Mediaquery ,
    I have problems .
    I dont now why

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

      what's the problem?

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

    How to handle API in flutter

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      Did you watch th-cam.com/video/kTrbcb21ENU/w-d-xo.html tut? Here I explained how to use API

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

    I can't find Json file the same you, you can help me Json, Thanks you

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

      Check again

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

    Is the code on Patreon ?I can't find it , please help.Thanks

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

      were you able to solve it if not please find me instagram/twitter/facebook @dbestech

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

    can someone help me and tell if this is work in syria 🇸🇾……..please

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

    In short, your player is working fine, but when you install the APK file on your Android phone, there is no sound.🙁

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

      I will try that

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

      @@dbestech It's working! I should have added this:

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

    Sir can you make a app like whatapp ,imo , in flutter and can you implement back-end as python

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      Yes. In future tutorial we will see that. Thanks for the comment though

    • @iam_muni_baa
      @iam_muni_baa 3 ปีที่แล้ว

      @@dbestech iam search lot about it . There is only chatting part showing in all videos but voice and video calling not showing . Please take a look on calling option

    • @iam_muni_baa
      @iam_muni_baa 3 ปีที่แล้ว

      @@dbestech any way your ui is super thanks . I love it 😍💖💖😍

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      @@iam_muni_baa You are most welcome

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      @@iam_muni_baa In my app, I don't have videos or calling options. Are you sure you are talking about this tutorial? It's an audio book app.

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

    What if I want to display the playlist at the top of the screen where I am selecting music? How would I do that?

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

      now, you need to create an empty space there at the top and once you select, save it in a list, and then use setState() function to save in the list. read the list in the empty space.

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

      @@dbestech thank you so much!

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

    Hello sir
    Can you please tell me from where you got Api bcz I need right now
    Kindly request.

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

      I think I didn't use any api for this. It's a link of the audio.

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

    How to create flutter package from scratch

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      Follow this link medium.com/flutter-community/how-to-create-publish-and-manage-flutter-packages-b4f2cd2c6b90

  • @faisalfotoh1909
    @faisalfotoh1909 3 ปีที่แล้ว

    please upload sorce code

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

    where is the music url

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      in a json file. for this pls refer to the previous tutorial

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

    Why duration is showing 0:00
    Though position is working as audio plays
    Can anybody help?

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

      make sure you have this Widget slider() {
      return Slider(
      activeColor: Colors.red,
      inactiveColor: Colors.grey,
      value: _position.inSeconds.toDouble(),
      min: 0.0,
      max: _duration.inSeconds.toDouble(),
      onChanged: (double value) {
      setState(() {
      changeToSecond(value.toInt());
      value = value;
      });});
      }
      void changeToSecond(int second){
      Duration newDuration = Duration(seconds: second);
      this.widget.advancedPlayer.seek(newDuration);
      }

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

      The length is showing 0:00
      I've done exactly you showed

  • @user-cn8cj7qz2m
    @user-cn8cj7qz2m 3 ปีที่แล้ว +1

    how can i get the assets

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      @dbestech Pls tweet me on twitter. I will send you

  • @AWEG-qu8bz
    @AWEG-qu8bz 2 ปีที่แล้ว

    hat should i think about a reviewer with audio content
    who make that bad sound on his Vids?

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

      Yes. later videos don't have background audio

  • @simarysbaev5509
    @simarysbaev5509 3 ปีที่แล้ว

    but how to get the duration of the audio in advance, I would like to display a list with the duration

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

      yes. you can do it. but then you need to initialize all the audios in a loop and save the duration. Instead of initializing one, you need to initialize all the audios. then after saving the value you need to close or dispose them. and use the audios later when you need again.

    • @simarysbaev5509
      @simarysbaev5509 3 ปีที่แล้ว

      @@dbestech thank you very much. i will try

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      sure

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

    Anyone got the source code for this?

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

    Can we play in the background ?

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

      Not yet.

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

      @@dbestech is it not provided in the package right ?

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

    how to show words of song??🤔

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

      You need to save them in database and read them back. You also need to save timestamps for it.

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

    r u using android studio for flutter

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

      Yes. bro

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

    Do you have a link to the app for us to download

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

    how to show minutes only while playing eg(8:05) in duration of the song

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

      Just split the time using .split(":") and then using indexing to get minutes. Like .split(":")[1]

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

      @@dbestech I tried this but it shows like 00 only I need to show like 0:00

  • @mohamedyashik1049
    @mohamedyashik1049 3 ปีที่แล้ว

    Can u share source code in phone call record in flutter?

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

      Hi Mohamed, it's all in my patreon account. you can unlock it from there with assets.

  • @jigneshji3228
    @jigneshji3228 3 ปีที่แล้ว

    No background play ?

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      For now no.

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

    how to connect to backend

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

      connecting backend is easy. I have alot of tutorials about it.

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

      @@dbestech actually ther is a problem to how to get video. That videos in backend but show in front-end

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

      @@papneshpatel7008 take my bloc or Riverpod class. I showed how to read videos from backend and play

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

    sir, why my duration is 0?

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

      sorry for late reply. Were you able to fix it, if not tell me more about it. if you have any error tell me about it in detail

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

    1:05:46

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      Hi Japan, how are you doing?

    • @rakzzjapan1739
      @rakzzjapan1739 3 ปีที่แล้ว

      @@dbestech i was still confused at the time of the audio call from json

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      @@rakzzjapan1739 were you able to solve it now?

    • @rakzzjapan1739
      @rakzzjapan1739 3 ปีที่แล้ว

      so i put the audio in firebase storage and copy the location link in json, how do i call it?

    • @dbestech
      @dbestech  3 ปีที่แล้ว

      @@rakzzjapan1739 I haven't really used firebase storage much. So not much Idea. But technically they should be the same as other storage or server

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

    Sir i ran into the pod problem again...i installed ruby and pods and set the path...now if i do pod install only in the terminal,pods are installed but if i try to build the application it says error running pod install..an error ooccured while running the post install hook(same as before-when i have tried the video player app..but this time the paths donot appear in red )
    And it shows error on continue in this line..:
    continue if xcframework_file.start_with?(".") # Hidden fine possibly on external disk..
    can u give tip sir?..i am very fed up.

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

      did you try to remove Podfile and pod.lock file and reinstall ?

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

      @@dbestech sir i tried that..when i do that and again install pod...
      Podfile is generated but not podfile.lock and its the same error..

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

      Sir what should i do...where should i learn??

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

      @@angelkarki2963 question, can you create other simple projects using pod? Is so let me know. If not, then it’s your total setting problems of the device environment

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

      @@dbestech i don't know sir..i have tried both audio and video player..and i failed..if you can please kindly tell me what should i learn to debug this..

  • @omyoubee7250
    @omyoubee7250 3 ปีที่แล้ว

    where is the path of video ??? link

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

      Hi Om, what do you mean by path of the video?

    • @omyoubee7250
      @omyoubee7250 3 ปีที่แล้ว

      when I click the button the song did not play !
      why
      there are a lot of messages I can't understand them
      as
      E/flutter ( 6939): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
      E/flutter ( 6939): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:18)
      E/flutter ( 6939):
      E/flutter ( 6939): #2 AudioPlayer._invokeMethod (package:audioplayers/src/audioplayer.dart:149:20)
      E/flutter ( 6939):
      E/flutter ( 6939): #3 AudioPlayer.play (package:audioplayers/src/audioplayer.dart:171:20)
      E/flutter ( 6939):
      E/flutter ( 6939):
      W/MediaPlayer-JNI( 6939): MediaPlayer finalized without being released

  • @jemmytech5474
    @jemmytech5474 3 ปีที่แล้ว

    First comment

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

    Is there a GitHub link

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

      There is patreon link for this.

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

    Will u plz provide me source code free. Its very important.

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

      chose a different mp3 audio from google

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

    books.json file is here
    [
    {
    "rating": "4.5",
    "title":"THE WATER CURE",
    "text":"Martin Hyatt",
    "img": "img/pic-1.png",
    "audio": "st.bslmeiyu.com/uploads/%e6%9c%97%e6%96%87%e5%9b%bd%e9%99%85SBS%e7%b3%bb%e5%88%97/%e6%9c%97%e6%96%87%e5%9b%bd%e9%99%85%e8%8b%b1%e8%af%ad%e6%95%99%e7%a8%8b%e7%ac%ac1%e5%86%8c_V2/%e5%ad%a6%e7%94%9f%e7%94%a8%e4%b9%a6/P149_Chapter%2016_Vocabulary%20Preview.mp3"
    },
    {
    "rating": "4.5",
    "title":"PEACE LIFE",
    "text":"Hazard Bin",
    "img": "img/pic-2.png",
    "audio": "st.bslmeiyu.com/uploads/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85SBS%E7%B3%BB%E5%88%97/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85%E8%8B%B1%E8%AF%AD%E6%95%99%E7%A8%8B%E7%AC%AC2%E5%86%8C_V2/%E5%AD%A6%E7%94%9F%E7%94%A8%E4%B9%A6/P027_Side%20by%20Side%20Gazette%2001_2Build%20Your%20Vocabulary!.mp3"
    },
    {
    "rating": "4.5",
    "title":"Day Remember",
    "text":"Nicholos",
    "img": "img/pic-3.png",
    "audio": "st.bslmeiyu.com/uploads/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85SBS%E7%B3%BB%E5%88%97/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85%E8%8B%B1%E8%AF%AD%E6%95%99%E7%A8%8B%E7%AC%AC2%E5%86%8C_V2/%E5%AD%A6%E7%94%9F%E7%94%A8%E4%B9%A6/P027_Side%20by%20Side%20Gazette%2001_2Build%20Your%20Vocabulary!.mp3"
    },
    {
    "rating": "4.5",
    "title":"France",
    "text":"Paris",
    "img": "img/pic-4.png",
    "audio": "st.bslmeiyu.com/uploads/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85SBS%E7%B3%BB%E5%88%97/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85%E8%8B%B1%E8%AF%AD%E6%95%99%E7%A8%8B%E7%AC%AC1%E5%86%8C_V2/%E5%AD%A6%E7%94%9F%E7%94%A8%E4%B9%A6/P150_Chapter%2016_1Model%20Conversation.mp3"
    },
    {
    "rating": "4.5",
    "title":"Germany",
    "text":"Berlin",
    "img": "img/pic-5.png",
    "audio": "st.bslmeiyu.com/uploads/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85SBS%E7%B3%BB%E5%88%97/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85%E8%8B%B1%E8%AF%AD%E6%95%99%E7%A8%8B%E7%AC%AC1%E5%86%8C_V2/%E5%AD%A6%E7%94%9F%E7%94%A8%E4%B9%A6/P150_Chapter%2016_1Model%20Conversation.mp3"
    },
    {
    "rating": "4.5",
    "title":"Italy",
    "text":"Rome",
    "img": "img/pic-1.png",
    "audio": "st.bslmeiyu.com/uploads/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85SBS%E7%B3%BB%E5%88%97/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85%E8%8B%B1%E8%AF%AD%E6%95%99%E7%A8%8B%E7%AC%AC1%E5%86%8C_V2/%E5%AD%A6%E7%94%9F%E7%94%A8%E4%B9%A6/P150_Chapter%2016_1Model%20Conversation.mp3"
    },
    {
    "rating": "4.5",
    "title":"Switzerland",
    "text":"Bern",
    "img": "img/pic-1.png",
    "audio": "st.bslmeiyu.com/uploads/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85SBS%E7%B3%BB%E5%88%97/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85%E8%8B%B1%E8%AF%AD%E6%95%99%E7%A8%8B%E7%AC%AC1%E5%86%8C_V2/%E5%AD%A6%E7%94%9F%E7%94%A8%E4%B9%A6/P150_Chapter%2016_1Model%20Conversation.mp3"
    },
    {
    "rating": "4.5",
    "title":"Singapore",
    "text":"Singapore",
    "img": "img/pic-1.png",
    "audio": "st.bslmeiyu.com/uploads/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85SBS%E7%B3%BB%E5%88%97/%E6%9C%97%E6%96%87%E5%9B%BD%E9%99%85%E8%8B%B1%E8%AF%AD%E6%95%99%E7%A8%8B%E7%AC%AC1%E5%86%8C_V2/%E5%AD%A6%E7%94%9F%E7%94%A8%E4%B9%A6/P150_Chapter%2016_1Model%20Conversation.mp3"
    }
    ]
    popularBooks.json file is here
    [
    {
    "rating": "4.5",
    "title":"THE WATER CURE",
    "text":"Martin Hyatt",
    "img": "img/pic-8.png",
    "audio": "Voices.mp3"
    },
    {
    "rating": "4.6",
    "title":"PEACE LIFE",
    "text":"Hazard Bin",
    "img": "img/pic-7.png",
    "audio": "June - Bobby Richards.mp3"
    },
    {
    "rating": "4.5",
    "title":"Day Remember",
    "text":"Nicholos",
    "img": "img/pic-6.png",
    "audio": "Muriel - Bobby Richards.mp3"
    },
    {
    "rating": "4.5",
    "title":"France",
    "text":"Paris",
    "img": "img/pic-9.png",
    "audio": "Piano Trap.mp3"
    },
    {
    "rating": "4.5",
    "title":"Germany",
    "text":"Berlin",
    "img": "img/pic-10.png",
    "audio": "Voices.mp3"
    }
    ]

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

      Hello Sir, how can i use the audio file in popularbooks.json its not an url. i have the same same scenario in my app and i dont know what to do....?