MediaPlayer in Android Studio

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 24

  • @SandipBhattacharya
    @SandipBhattacharya  Год назад +1

    Master programming and take your career to new heights with clear, concise C, Android, and Web Development courses for just Rs. 999 / $ 12. Get lifetime access and certificate. Click here to enroll: courses.sandipbhattacharya.com/s/store

  • @Varen99316
    @Varen99316 3 года назад +4

    also make the tutor continue to the next music when it is playing.

  • @sameeringole1899
    @sameeringole1899 4 года назад +2

    Thank You Sir... This tutorial is really helpful. With your tutorials Android development is became very easy. Thank You So Much.... :) :) :)

  • @albertswinkels2618
    @albertswinkels2618 4 года назад +5

    Without experience with programming in Java / Android (but only in VB and C #) this was very helpful. It was a bit of a puzzle with IntelliJ ... maybe you can pay some attention to that in your future videos.
    I can figure it out myself, but if you also can put together a video for MediaPlayer with radio streaming that would be helpful too :-)

    • @SandipBhattacharya
      @SandipBhattacharya  4 года назад +2

      @Albert, glad to know it helped. I'll try to make a tutorial on MediaPlayer with radio streaming. 🙂

    • @albertswinkels2618
      @albertswinkels2618 4 года назад +1

      ​@@SandipBhattacharya Thanks for your reply. I've already made a radio player. It turned out to be very simple, but there is probably room for improvement. Nevertheless, in a few days the app will appear in Google Play: it's called DinxperFM, an online radio station run by an association. I am the chairman of that association :-).

    • @SandipBhattacharya
      @SandipBhattacharya  4 года назад

      Wow! Congratulations! 👍

    • @jlalvarez10
      @jlalvarez10 4 года назад

      @@albertswinkels2618 Hello friend, could you please help me to generate my app online? I have the problem that the transmission cuts out after a few minutes. Please help. Thank you.

    • @jlalvarez10
      @jlalvarez10 4 года назад

      @@SandipBhattacharya Hello friend, could you please help me to generate my app online? I have the problem that the transmission cuts out after a few minutes. Please help. Thank you.

  • @hussenapptube
    @hussenapptube 3 года назад +1

    thanks sir very help full but how to play multiple songs please make a video on this

  • @andjipandji25
    @andjipandji25 2 года назад +1

    Can you show how you could make the onStop() work for two music files each with their own play and pause button?

    • @SandipBhattacharya
      @SandipBhattacharya  Год назад

      You need to release your media player objects and set them to null when the activity is stopping, ie when onStop() is called. For example:
      if(mediaPlayer1 != null){
      mediaPlayer1.release();
      mediaPlayer1 = null;
      }
      if(mediaPlayer2 != null){
      mediaPlayer2.release();
      mediaPlayer2 = null;
      }
      Hope that helps!

  • @dyari009
    @dyari009 3 года назад +2

    Thanks bro , i want create a application to play songs in firebase database and user can download a mp3 files to play when the are in offline mode , I mean When user click download button download the mp3 files in my firebase database to a private folder ex "NewFolder test " and user just can play the in the NewFolder test , how can I do it ? Can you please help me ? Send an video tutorial please.

    • @SandipBhattacharya
      @SandipBhattacharya  3 года назад +1

      Hi @Dyari, noted your request. I'll try to create a tutorial on that soon.

  • @tamirmoav3774
    @tamirmoav3774 3 года назад +1

    thank you. why do the release is oportant?

  • @AmitYadav-km9nm
    @AmitYadav-km9nm 3 года назад

    Very well taught 👍👍

  • @rajabkelvin3842
    @rajabkelvin3842 2 года назад +1

    nice

  • @thomasorta4297
    @thomasorta4297 3 года назад +1

    yes I like, but I wanna create an app for radio using stream HTTP://myservers.music.com:8900/stream, so I can apply the same technique like your video?, thanks