How to Play Audio & Video on Android with Exoplayer | Android Studio | 2024

Поділитися
Вставка
  • Опубліковано 10 вер 2024
  • How to play or stream audio and video with the URL directly from cloud to android phone with the help of Exoplayer or Media3 library.
    In this video you will learn following key things :
    * How to play audio from url
    * How to play video from url
    * How to implement Exoplayer
    * How to integrate Exoplayer to play audio
    * How to make media player in android
    * How to play audio and video in android
    If you want to support
    ☕ Buy me a coffee!"☕
    www.buymeacoff...
    ---------------------------------------------------------------------------------------------------------------
    🔥 Don't forget to like, share, and subscribe for more awesome tutorials! 🎉
    ---------------------------------------------------------------------------------------------------------------
    💬Chat app with Firebase Complete Series 🔥
    • Chat App with Firebase...
    📱TikTok Clone app with Firebase Complete Series 🔥
    • Shorts App (Reels,Shor...
    Android Full Project App Development Playlist:
    • Playlist
    INSTAGRAM :
    / easytutoyt

КОМЕНТАРІ • 60

  • @yesman3442
    @yesman3442 9 місяців тому +1

    Today you show us your face not hand 😅, I really appreciate your work sir. Thanks and God bless.

  • @GTaichou
    @GTaichou 5 місяців тому

    This video was so much more helpful than the first four weeks of my Android dev class THANK YOU!!

  • @Maytag1987
    @Maytag1987 8 місяців тому +1

    You rock! Thank you for making this video, this should help me greatly with my app development project I am working on!! You earned my subscription for sure!

  • @c4bleturn438
    @c4bleturn438 9 місяців тому +1

    you are the best android studio developer thank's man

  • @SmartVblog
    @SmartVblog 22 дні тому

    Dear Sir , Can you give me a source code ? I follow your instruction but it always error on some word: activitymain, binding, binding root .etc.
    or Please you can show me with java code instead of KOLIN?

  • @premiumdeveloper
    @premiumdeveloper 8 місяців тому

    first time seeing your face, what really made me know it was you is the beginning when you say "what is going on guys" good video man, next project should be a twitter clone using java and xml or habit tracker application using java and xml

  • @Maytag1987
    @Maytag1987 8 місяців тому

    Hello, this example works very well for me. I tried to expand the app by adding a new kotlin class with a new xml activity, and added a button the main activity to go the new class. From the new page, I want to play audio like was done on the main activity. I added buttons, and call the MediaPlayerActivity function to play via Exoplayer, but the player page does not show, no errors and no audio. All audio works on the MainActivity. I tried creating a new MediaPlayerActivity (with setContentView set to the new activity page instead of binding.root) to be called by the new class file, but still no media player page. Suggestions on what I may have missed for audio to work on other activity pages in the same app? Thank you!

    • @EasyTuto1
      @EasyTuto1  8 місяців тому +1

      New video will be up in coming week.
      There i have done similar things. You can checkout that.
      Stay tuned.

  • @anilkumarkushwaha2097
    @anilkumarkushwaha2097 7 місяців тому

    Thanks sir, your tutorial are very useful for us.. , i am a beginner of Android studio and your tutorial are very useful, please provide also tutorial source code for help..

    • @anilkumarkushwaha2097
      @anilkumarkushwaha2097 7 місяців тому

      Which EXO library is best for radio app for direct playing audio from any any audio stream url.

  • @ayuspandey
    @ayuspandey 2 місяці тому

    Bhai landscape portrait krne ka option kaise aega ?

  • @haopham4796
    @haopham4796 9 місяців тому

    I use push notifications to notify back and forth between the management app and the sales app. But only the management application receives notifications. Although testing on firebase notification messages still works

    • @EasyTuto1
      @EasyTuto1  8 місяців тому

      Something might be wrong in code.
      Or maybe notification are turned off in the devices.

  • @toxicnepal4003
    @toxicnepal4003 7 місяців тому

    thanks for the video,
    learning a lot from your channel.

    • @EasyTuto1
      @EasyTuto1  7 місяців тому

      Thanks you too ❤️
      Keep learning.

  • @bhushanlilhare8927
    @bhushanlilhare8927 2 місяці тому

    Kay ise java mein use kar skte hai

  • @MastersOfSat
    @MastersOfSat 6 місяців тому

    I have a problem, can you give me a solution if possible?

  • @Maytag1987
    @Maytag1987 8 місяців тому

    Love your tutorials! Could you possibly show how to do this with Firebase so you can have a number of audio files and some text (example -descriptive title), the app reads whatever files and text are in the Firebase project, and then will allow playback of desired audio files? I see you have a tutorial with video clips but I think the playback mechanism is a bit different for audio. This would also be like spotify. Thank you!

    • @EasyTuto1
      @EasyTuto1  8 місяців тому +1

      Sure. I was also planning for similar tutorial.

    • @Maytag1987
      @Maytag1987 8 місяців тому

      @@EasyTuto1 That is great - would love to be able to add or remove audio and descriptive text from Firebase, have the read [dynamically] whatever is there, load them into an array or something, and be able to select ones to play (no more need to update the app to add new audio!) I am still learning and I want to create categories of pages, each with their own related audio, and maybe the best way to do that is to use a different Firebase project for each, or possibly use categorization by name of audio and text files, and for each page, read in just the files that starts with a prefix for that specific category. Will give that one some thought! Thank you!

  • @m.e.ssofttech2806
    @m.e.ssofttech2806 7 місяців тому

    Why I can't see a video after implementing whole codes, I just here sounds only

    • @EasyTuto1
      @EasyTuto1  7 місяців тому

      Is the link you have given for is video or audio?

    • @m.e.ssofttech2806
      @m.e.ssofttech2806 7 місяців тому

      @@EasyTuto1 The link is for video from public test videos with these dependency
      implementation "androidx.media3:media3-exoplayer:1.2.1"
      implementation "androidx.media3:media3-exoplayer-dash:1.2.1"
      implementation "androidx.media3:media3-ui:1.2.1"
      After implementing the whole codes I just here sound only without video.
      Despite adding the internet permission

    • @m.e.ssofttech2806
      @m.e.ssofttech2806 6 місяців тому

      Ooh thanks, finally I resolved it, there were some bugs but I've fixed.

    • @EasyTuto1
      @EasyTuto1  6 місяців тому

      Glad you fixed it.🫶

  • @emmagetsu7369
    @emmagetsu7369 8 місяців тому

    Excellent tutorial, you could do it in jetpack compose to call the live channel URLs in a lazygrid that contains image and text

  • @Jjjnmkkmkkk
    @Jjjnmkkmkkk 3 місяці тому

    Can't u make the video in Java

  • @champbhopali5025
    @champbhopali5025 6 місяців тому

    Good job working nicely

  • @sudarshanthite5937
    @sudarshanthite5937 6 місяців тому

    How to play the video with subtitles in this player

    • @EasyTuto1
      @EasyTuto1  6 місяців тому +1

      If you have subtitle in the video, it automatically works.

    • @sudarshanthite5937
      @sudarshanthite5937 6 місяців тому

      @@EasyTuto1 , is this player support m3u8 video.

  • @MukeshPatel-jz8fe
    @MukeshPatel-jz8fe 8 місяців тому

    @EasyTuto1 Do you have any sample app related to video caching? or can you please make it.

  • @hacknmode
    @hacknmode 9 місяців тому

    Sir, What is Average salary of Android developer ?

    • @EasyTuto1
      @EasyTuto1  8 місяців тому

      Its upto your skill and experience.
      But yes its more than average.

  • @ShahabuddinChowdhuryBD
    @ShahabuddinChowdhuryBD 6 місяців тому

    Thank you boss❤❤❤

  • @Jjjnmkkmkkk
    @Jjjnmkkmkkk 27 днів тому

    Why do you reply to everyone except me please make your videos in Java code 😢 I'm coding on my phone I'm not having a laptop 💻

    • @EasyTuto1
      @EasyTuto1  27 днів тому

      You need to switch to kotlin brother.

  • @TheNoobDhruv
    @TheNoobDhruv 4 місяці тому

    How to play youtube video in exoplayer

    • @EasyTuto1
      @EasyTuto1  4 місяці тому

      You can't play youtube videos.

    • @TheNoobDhruv
      @TheNoobDhruv 4 місяці тому

      @@EasyTuto1 using youtube data api ?

  • @surya14_kumar_s_k_y
    @surya14_kumar_s_k_y 8 місяців тому

    Source code ki link bhi description box me de diya karo jii..

    • @EasyTuto1
      @EasyTuto1  8 місяців тому

      Most of the video's source code will be there.
      This was simple and less code that's why its not there.

  • @rishiraj2548
    @rishiraj2548 9 місяців тому

    Good. How are you?

  • @LocktheRoom
    @LocktheRoom 8 місяців тому +1

    Bhai Yrr tu hi padha de yrr online video se otna nhi sikh pa rha ho paise lekar akele padha de bro

    • @EasyTuto1
      @EasyTuto1  8 місяців тому

      I am teaching here freely.
      Do create all the projects created in the channel, you will gain lots of knowlede.

    • @EasyTuto1
      @EasyTuto1  8 місяців тому

      I am teaching here freely.
      Do create all the projects created in the channel, you will gain lots of knowlede.

  • @MastersOfSat
    @MastersOfSat 6 місяців тому

    ❤❤❤❤

  • @jitenSingha-kw6eb
    @jitenSingha-kw6eb 7 місяців тому

    Next Part bro

  • @mdabdulhamid7931
    @mdabdulhamid7931 8 місяців тому

    java diye akta video den,

    • @EasyTuto1
      @EasyTuto1  7 місяців тому

      Hayır, kotlin'de.

  • @China_SquareKenya
    @China_SquareKenya 9 місяців тому

    Source code kindly??

    • @EasyTuto1
      @EasyTuto1  8 місяців тому

      Apology. No source code for this since its just a demo application to show the implementation of Exoplayer.

    • @China_SquareKenya
      @China_SquareKenya 8 місяців тому

      @@EasyTuto1 okay cool thanks