Create Custom Music Player in HTML CSS & JavaScript

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • Create Custom Music Player in HTML CSS & JavaScript | Music Player in JavaScript
    In this video, I have shown you how to create a custom music player using html css & javascript. This music player has several features like you can loop, repeat or shuffle a song, play/pause a song or play the next or previous song. You can view your songs list and also know which song is currently playing and you can also select the song from the list to play. Hope you love this music player, if you love this then let me know in the comment.
    Hire me on Fiverr
    www.fiverr.com/prakashahi
    Download Codes From Here - codingnepalweb.com/create-mus...
    Timestamps:
    0:00 Music Player Demo
    4:43 HTML & CSS Start
    27:30 JavaScript Start
    27:50 Creating an array to store music details
    29:33 Creating script.js file for JavaScript codes
    35:19 Play or Pause button click event
    36:20 Function for play music
    37:05 Function for pause music
    38:58 Next button click event
    39:21 Function for next music
    41:18 Previous button click event
    41:36 Function for the previous music
    43:28 Updating progress bar width with music currentTime
    46:08 Updating song timer - current time & duration
    51:41 Updating music current time click on the progress bar
    54:51 Changing loop, repeat, shuffle icon click
    58:41 Playing next music according to the icon - loop, repeat or shuffle
    1:05:49 Show or hide music list panel event
    1:07:19 Creating li tags according to the array length and passing music details
    1:12:49 Playing particular music on particular li clicked
    1:23:30 Loading different music on page refresh
    Second Channel - bit.ly/3aHNkru
    Facebook - / coding.np
    Instagram - / coding.np
    Music used in this video:
    Ikson - Anywhere [Official]
    • #66 Anywhere (Official)
    Track: Jimmy Hardwind - Want Me (feat. Mike Archangelo)
    ➤ Watch: • Jimmy Hardwind - Want ...
    Track: BEAUZ & JVNA - Crazy [NCS Release]
    ➤ Watch: • BEAUZ & JVNA - Crazy |...
    Track: Jim Yosef x ROY KNOX - Sun Goes Down [NCS Release]
    ➤ Watch: • Jim Yosef x ROY KNOX -...
    Track: Lost Sky - Vision [NCS Release]
    ➤ Watch: • Lost Sky - Vision | Du...

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

  • @CodingNepal
    @CodingNepal  3 года назад +114

    I tried to explain each JavaScript line with writing comments. Please watch the video and remember to Like.

    • @khaledkhierovic6675
      @khaledkhierovic6675 3 года назад +5

      Hey codingnepal I was 1 of your first subscribers. Now u become big q RUclipsr and I knew that u gonna become 1 day. After all in all keep going dude.🤍🤎🖤

    • @CodingNepal
      @CodingNepal  3 года назад +5

      Happy to hear 😀

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

      Awesome you make my day. Iam trying to make it my self and downloading templates but that's all very hardly coded I can't recognize the code and surprisingly you uploaded it
      I can understand your code. your code is simple understandable thank you very very much.
      😘🤩😘🤩😘🤩😘🤩
      Sorry my english is not good but understandable.
      Bro where's source code🧐🧐🧐🧐

    • @CodingNepal
      @CodingNepal  3 года назад +3

      I'll upload it on my website tomorrow and then I provide the link in the description. Don't worry I'll inform you once it is uploaded.

    • @hitkumar
      @hitkumar 3 года назад +5

      sir explain bhi kar dia karo chahe hindi me ya eng me bolke

  • @f3edback993
    @f3edback993 3 года назад +9

    Wow, it's very impressive, I lost my minds several times but you are explaining very well. Thanks!

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

    One of the best coder i had ever known 🙏
    Great work buddy ❤️

  • @zakariasalad828
    @zakariasalad828 3 года назад +3

    From Somalia!
    For all you do, for who you are, I will be forever grateful you are in my life.”
    Words cannot express my feelings, nor my thanks for all your help.
    Your thoughtfulness will always be remembered.
    Really appreciate the time you’ve taken out of your busy schedule to help us out.

  • @channel-ou9cl
    @channel-ou9cl 3 года назад

    Yet another super great javascript project with super ui design and super documentation

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

    You are a genius. Hope to see you in more action. Keep up the good work brother.

  • @PieceOfInternet
    @PieceOfInternet 10 месяцев назад +1

    A perfect example of how to engage audience to your code)
    Really nice and fruitful video. Great theme and good-looking app.

  • @ihack-cheats6196
    @ihack-cheats6196 2 года назад

    Best video on whole youtube about making this music player ❤❤❤ Love from Nepal

  • @bilimlink
    @bilimlink 3 месяца назад

    Great, Great respects from Kazakhstan 🇰🇿.
    You're amazing, bro!
    Thank you 😊

  • @prabhjotsingh161
    @prabhjotsingh161 3 года назад +3

    Bro that project was just awesome .Loved it. But i have i request, please upload a video in which we can dynamically inset any song, we dont have to give it to the array

  • @vraudio.
    @vraudio. 3 года назад +10

    This is just the whole of the level! Awesome work dude!

  • @geovannygonzalez8379
    @geovannygonzalez8379 2 года назад

    I love it, okay, I'll follow in your footsteps, then with the icon at the top left I'll do an accordion effect and then it'll go down.

  • @smit66
    @smit66 3 года назад

    You are unbelievable work for us and 🔥 your brain work in JavaScript 100%🔥🔥

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

    finally, I m waiting for this for so long

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

    Nice Work Bro Code Block introduced me to you love your content keep it up 😉

  • @user-pe4wz6rl9y
    @user-pe4wz6rl9y Год назад

    Great job. Thank you so much for your help!!!

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

    You make advanced projects bro . Amazing :D

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

    one of the best video ever. but a video without talking makes it difficult to watch. big ups tho

  • @asadbeksheraliyev7662
    @asadbeksheraliyev7662 3 года назад

    Greetings from Uzbekistan! just super!

  • @freaxwoz2802
    @freaxwoz2802 3 года назад

    Another hands up to you coding nepal your awesome and great..

  • @megatkc
    @megatkc 3 года назад +11

    You can become the next spotify with this.

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

    wow, it's really amazing. love this

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

    man thanks a lot!!!! I learned a lot from this one. especially in JS your comments help a lot. Again Thank you!

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

    A trillion likes please.
    Very good ... Excellent !!!

  • @Araratisk_0729
    @Araratisk_0729 3 года назад +3

    Love from Armenia! Amazing work you're helping me so much thanks :)

  • @aadityasharma530
    @aadityasharma530 3 года назад

    This Player Is The Best!!!!
    Requested Thing = Custom Video Player Just Like This Music Player.

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

    thanks bro
    I learned a lot from it ♥

  • @evergreen7781
    @evergreen7781 3 года назад +6

    It's majestic, pro level work man ❤️

  • @kidando
    @kidando 2 года назад

    Very awesome tutorial. I have one problem though, clicking on the progress bar in chrome does not make the track update current time... instead it resets current time to 0. the audio just starts from the beginning. On Firefox it works

  • @Yogoflife
    @Yogoflife 6 месяцев назад

    Thanks for providing music player

  • @irulaname
    @irulaname 3 года назад

    Amazing, thank you!

  • @zaidshah8923
    @zaidshah8923 3 года назад +6

    Love from 'Mumbai'
    Day by day content getting awesome.

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

    Thanks, Very awesome tutorial.

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

    Nice post bro, I would've used SASS for this one though 😀

  • @ahmedelkhdrawy6915
    @ahmedelkhdrawy6915 10 месяцев назад

    your explain very well. Thanks you so 😘

  • @4lbrothers
    @4lbrothers 2 года назад

    Outstanding 👍🏻..❤️ from #4L_BrotherS Arunachal Pradesh Itanagar India

  • @bhoumicgarg3710
    @bhoumicgarg3710 3 года назад

    *It's awesome bhai amazing*

  • @Abhinav-cx6mh
    @Abhinav-cx6mh 3 года назад

    very awesome project .i love it

  • @unlimitedtricks580
    @unlimitedtricks580 3 года назад

    Thanks brother this is awesome music players and tried it in my website
    ✅✅✅🔃⏪⏸⏩✔✔✔✔
    Love you nepal 🤩❤❤💝

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

    I love you Vids. This is 1 of the best amongst them. Source code pls

  • @museermias1885
    @museermias1885 11 месяцев назад

    wow!! thanks bro is so nice

  • @mdzahid1389
    @mdzahid1389 3 года назад

    Thank you so much for teaching me this
    My wish
    You will try to make a video player like this

  • @yubiroaster6285
    @yubiroaster6285 3 года назад +12

    This is amazing 😱brother ❤️
    Love from NEPAL 🇳🇵 ✌️

  • @iceypython9006
    @iceypython9006 3 года назад

    Wow tis is really awesome 💓💓😱🎊

  • @massimomaxima6064
    @massimomaxima6064 3 года назад

    You're the best man @codingnepalweb

  • @freetospeak5069
    @freetospeak5069 3 года назад

    U always amazing bro, stay healhty

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

    Hi Sir, Can i code this using Subline text Editor instead of Visual Studio?
    And also your channel is Awesome for Bingers to Pro Journey.

  • @enock_nit906
    @enock_nit906 3 года назад

    You have done nice job too.

  • @wrightian5291
    @wrightian5291 2 года назад

    this is amazing 🔥🔥🔥

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

    Thanks bro! With this I can improve my coding skills!
    From Philippines! 💞

  • @KeshvaHitesh
    @KeshvaHitesh 3 года назад

    Hi @coding nepal love from 🇮🇳 and one doubt, where you have hosted you website? the latest design of your website is just awesome.

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

    can you make a video on building responsive admin dashboard with only html css and javascript?? Its kind of emergency. I would be a very very very grateful to you. You have literally saved my life. Can you do it again??

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

    gracias, saludos desde perú

  • @amiradhikari2704
    @amiradhikari2704 3 года назад

    Nice one. Ui would look better if you had made the image round and added animation like a roating wheel when song is played. but looks nice anyway

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

    beautiful design !! smart work || result shows each hard work Thank you for enhancing our knowledge.|| Thank you CodingNepal

  • @Mattyus-Web
    @Mattyus-Web 3 года назад

    well done, brother..!!!

  • @svobodennn
    @svobodennn 2 года назад

    Thank you very much! You're gr8!

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

    Thank you very much. I am really grateful for this video

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

    Hi thanks so much for this explanation!! is there a way to show what I´m listening (real time ) in youtube?

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

    your songs in music player is so beautiful for listening during coding

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

    Very awesome video. Thanks for your hard work.

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

    Ohh Array of Objects! Nice video!

  • @pouriyanourouznejad7090
    @pouriyanourouznejad7090 3 года назад

    Amazing 💜

  • @revvnijaa4177
    @revvnijaa4177 2 года назад

    Clearly learning stuff

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

    Thank you so much for the video it's amazing.

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

    Wow 😍😍🥰 Nice Job

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

    Thanks for your hard working. Your hard work let us know many unknowns.

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

      It's my pleasure

    • @raunaqhossein6599
      @raunaqhossein6599 3 года назад

      @@CodingNepal I like your all projects, They are really very cool 😎😎😎.

  • @user-xg1ti8qm1p
    @user-xg1ti8qm1p 3 года назад

    Good job. I like 👍🏻

  • @akankshaubale6491
    @akankshaubale6491 3 года назад

    Awesome video bro😇

  • @CodingW3
    @CodingW3 8 месяцев назад +1

    Toppp! 👏🏻👏🏻👏🏻👏🏻

  • @mainuddinsk786
    @mainuddinsk786 3 года назад

    Awesome Sir and please make spin wheel with point system.

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

    Wonderful bro

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

    very nice music player,
    Iam your big fun of your music player

  • @Anas-xi1mx
    @Anas-xi1mx 3 года назад +1

    Thank you 💛
    your follower from Syria 😊

    • @CodingNepal
      @CodingNepal  3 года назад

      Glad to hear that...Keep watching 😊

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

    While it's hosted to the server it's take almost high amount of data to fully load the site. I think it's load the songs and images from the server at once. Can I prevent its form loading whole songs instead can I use 1 song and 1 image at a time is it possible to make some changes in for loop.

  • @EnmityEDM
    @EnmityEDM 2 года назад

    You sir, earned a Subscribe. Thanks alot!

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

    You are awesome bro!!!!!!!!! Thanks for the tutorial

  • @shuvamdutta6359
    @shuvamdutta6359 3 года назад

    Great

  • @__su_man
    @__su_man 3 года назад

    This is really cool

  • @akashkrishna1873
    @akashkrishna1873 3 года назад

    We will support ur work love u coding nepal♥️ and pls provide source code 🙏🙏♥️

  • @fabricioelnegro8670
    @fabricioelnegro8670 2 года назад

    Hello, what would I have to change to use it as a radio player? Thank you very much, Greetings!!!

  • @nalamatialekhya3625
    @nalamatialekhya3625 3 года назад

    is it possible to add audio from youtube instead of the downloaded audio from the device? kindly explain it. thank you.

  • @150Records
    @150Records 2 года назад +2

    is it possible to make it work through links instead of local folders?

  • @hirashahzad179
    @hirashahzad179 3 года назад

    amazingg!!

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

    Thanks, bro. This is super

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

    u r so good u reply everyone...

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

    Amazing
    I RESPECT TO YOUR EFFORT SIR

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

    THANKS!!!!!

  • @nguyenbalongvu9434
    @nguyenbalongvu9434 2 года назад

    this is awsome, nice job !!

  • @dineshpandey160
    @dineshpandey160 3 года назад

    Thank you❤

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

    Awesome project for beginners ❤️

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

    Love you video so much bro.

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

    Great work
    Keet it up bro
    Proud to have u bro

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

    I love you!!

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

    It's very nice video

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

    codingNepal bro, you should use input range slider for music timeline not div

  • @bismarkowusu2957
    @bismarkowusu2957 18 дней назад

    Thumbs up

  • @m18web92
    @m18web92 2 года назад

    very very cool

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

    Wow, Thank Youuuuuuu!!!

  • @ManuMarea
    @ManuMarea 2 года назад

    Its incredible.Thanks.Hope the post is not too old for giving you an " you're great !! " . I see two active items on top ,what are they for ? Last , is there a way to put a volume controller there ?

    • @CodingNepal
      @CodingNepal  2 года назад

      Those two icons are only for design.. Yes, you can add volume controller in this music app.

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

      @@CodingNepal would you be so kind to show me how?Thanks for this masterpiece.