Build a Music Player | Vanilla JavaScript

  Рет қаралды 259,242

Traversy Media

Traversy Media

Күн бұрын

Пікірлер: 334
@aliounegueye2061
@aliounegueye2061 3 жыл бұрын
You are the best programmer teacher I ve never meet before.
@gothicisbestrpg
@gothicisbestrpg 3 жыл бұрын
I needed to create custom music player a month ago in React. I was looking for something like that. Thank you Brad!
@Almighty_Flat_Earth
@Almighty_Flat_Earth 3 жыл бұрын
React js is the most hated. Angular is the king. React makes things more complicated, while the same functionality can be achieved in pure js or angular in more elegant way. Virtual dom is very slow in mobile because it takes a lot of RAM space. There are many blogs against react js. Please adapt to the trending Angular.
@collins4359
@collins4359 3 жыл бұрын
@@Almighty_Flat_Earth lol
@geekstudio.
@geekstudio. Жыл бұрын
Thanks Trav! You not only need consistency for code but you need hands on and creativity. Its not enough to watch and follow up on documentation but to also disect and play aorund with your code to create something new and fresh. Thats why I like this channel. Trav puts in the work for his videos !
@Cyb3rTechGuy
@Cyb3rTechGuy 3 жыл бұрын
I don't think I've ever watched a video that was easy to follow and understand. This video was very well done. Easy to follow, easy to understand. I was looking for how to build a music player. Now I have to figure out how to make it play as an A/B comparison player. I'll have to give myself a crash course in JS and CSS.
@wetsand7379
@wetsand7379 3 жыл бұрын
this is the first time I've ever been able to successfully complete a project using JavaScript. Thank you!
@TylerPotts
@TylerPotts 3 жыл бұрын
The best place to learn to code on the web! I loved watching this, Brad!
@quickcodingtuts
@quickcodingtuts 3 жыл бұрын
I rember years ago you made a music player and blasted off some Linkin Park tunes on the demo, good times
@TraversyMedia
@TraversyMedia 3 жыл бұрын
Wow, that was a long time ago. I'm surprised you remember. I don't want a copyright strike, so stock music will have to do lol
@cwcfunclock2709
@cwcfunclock2709 3 жыл бұрын
@Banx Omg I remember that tooooooooooo
@yalla_caguetrades4140
@yalla_caguetrades4140 3 жыл бұрын
@@cwcfunclock2709 omg i dont remember that
@abdullahalakus9700
@abdullahalakus9700 3 жыл бұрын
@@yalla_caguetrades4140 me to
@MasayaShida
@MasayaShida 3 жыл бұрын
Still listening to LP to this day! 🤘
@quocbao6046
@quocbao6046 3 жыл бұрын
What a brilliant tutorial!! Holy crap! This will be my university "Web programming" course project for sure! Thank you very much sir! Keep it going!
@michalbotor
@michalbotor 3 жыл бұрын
i had lots of fun coding along. thanks! css and js have come a long way btw. it's pretty stunning what one can achieve with so little effort.
@oscaralvarez1519
@oscaralvarez1519 3 жыл бұрын
I loved so much this practice I put in practice almost all I learned in HTML, CSS & JS Thanks so much for your time and sharing your knowledge with us
@syberiaok
@syberiaok 2 жыл бұрын
Great!!I've recently finished my JS course and I'm starting to code a few little projects. I hope one day I can have the ability to think more logically in order to know how to implement my own ideas. I really enjoy your videos, thanks a lot
@andysworkshopcustoms
@andysworkshopcustoms 2 жыл бұрын
I am building an extended version of this Player as a first js exersice now I added a new array inside first to make albums playing separately from each other. That will be my music site!
@PINEDARONALD
@PINEDARONALD 2 жыл бұрын
I did everything he say but the round picture isn't turning what I am doing wrong?
@dancehalllyrics1303
@dancehalllyrics1303 3 жыл бұрын
I’ve used the certificates from your JS courses to apply for my dream education as a software developer and later on web developer! I’ll of course have you on my mind when I get my answer whether I get in or not and when I’m in (if everything goes well! 🤞).
@thiyagus2850
@thiyagus2850 3 жыл бұрын
You're awesome. Definitely a refresher for CSS & JS. Stay blessed Brad!!!
@temidayooladele9856
@temidayooladele9856 3 жыл бұрын
You are such a genius.. Have learnt a lot from your courses.. With love from 🇳🇬🇳🇬
@doomerconsumer
@doomerconsumer 3 жыл бұрын
dude you are a freaking wizard. love your tutorials. great pacing and explanations throughtout!
@edavids06
@edavids06 3 жыл бұрын
Just another amazing video! Thanks for share your knowledge with us, Brad
@arindambala6079
@arindambala6079 2 жыл бұрын
Thank you Sir... This is a great tutorial.. I finally completed this project today... All the concepts and explanations you gave in this project are really helpful for understanding the basics of HTML, CSS and JavaScript in a real world implementing view. Thanks a lot Sir...
@tonym6878
@tonym6878 3 жыл бұрын
Thank you for your great teachings and offers over the years. And even for today's promo. We have learnt a great deal and we appreciate you taking time to help us advance in all relevant fields.
@shrangisoni8758
@shrangisoni8758 3 жыл бұрын
Traversy media is a saviour for all young developers.
@piecesofeight_mashups
@piecesofeight_mashups 2 жыл бұрын
I'm picking up JavaScript lately and this example was a great ground-up tutorial to learn from. Will consider buying your course!
@RebrandSoon0000
@RebrandSoon0000 3 жыл бұрын
I just bought the course, just made it in time and it was $9.99 for me. As I don't make a ton of $, this helps a lot! Thank you Brad! 👍
@hamaaritech8714
@hamaaritech8714 3 жыл бұрын
Sir if you dont mind i want to say that next time when you upload the course it should be a full course not a crash course because you are our mentor we want to learn from you alot thank you
@dibyamohanacharya9783
@dibyamohanacharya9783 3 жыл бұрын
In playsong() and pausesong(), instead of adding and removing classes, can we use the toggle method? Tip- Add a circular queue. Add as many songs you want. Pressing the next button or prev button will always play a song. It will never end.😅
@dromen2001
@dromen2001 3 жыл бұрын
This was a awesome project, thank you. You explain things clearly and I was able to keep up. Thank you.
@DividedStates
@DividedStates 3 жыл бұрын
This is such a nice and simple HTML/CSS/JS training. Perfect for beginners.
@informationgiant7697
@informationgiant7697 3 жыл бұрын
I love traverse media ....I just love this channel ...Brad you amazing man.
@sumaya-kabir
@sumaya-kabir 2 жыл бұрын
Thank you so much. I completed it. Here the CSS section is essential for practising and in the js section, the progress bar js is a little bit tricky for a beginner but the other thing is 100% clear.
@ZeStarLight
@ZeStarLight 2 жыл бұрын
Hi! Can you help me fix the progress bar problem? I've looked in the CSS and JS, but nothing, the progress bar doesn't work for me.
@tomasburian6550
@tomasburian6550 2 жыл бұрын
Hey Brad, thanks for doing this for us, I'm learning at light speed here. I got one suggestion, though. When you are about to do something, especially when coding the script, please tell us ahead what you're going to do and why, just one or two sentences would do, because usually I'm tempted to just write along without knowing what I'm doing. It'd help me to streamline the thought process when I'm making my own stuff. Thanks a lot.
@windevchannel
@windevchannel Жыл бұрын
like line 18 it's calling the function that takes parameter that accept index of the song from the songs array. Because he set the songIndex = 2, that would be the first song to appear. songs[songIndex] is basically saying. from the array, just bring me back whatever index in the array. Which in this case it is Ukulele
@mygicarskrsk4465
@mygicarskrsk4465 3 жыл бұрын
wow this looks like a really fun n exciting project! looking forward in rolling along with this, Thanks brad for the awesome content again! 😎
@vardhanmahajan7135
@vardhanmahajan7135 3 жыл бұрын
this is si hype!!!!! Thanks dude, I will make something like this! next :- a video player to go with this!
@godfreyndiritu369
@godfreyndiritu369 3 жыл бұрын
Thanks Brad, I have always wanted to create a music player.
@vlknlvnt
@vlknlvnt 3 жыл бұрын
"Now we're going to javascript. This is the fun part."
@AayanamAnirudh
@AayanamAnirudh 3 жыл бұрын
Hey, Almost 1.5 million subs.... Congrats Brad
@kennethkipchumba2532
@kennethkipchumba2532 3 жыл бұрын
Before the end of 2021, it's gonna be 2M subscribers for this amazing channel. Watch this space.
@Nevverglow
@Nevverglow 3 жыл бұрын
removing the css property bottm:50%, the dot would be perfectly centered
@ThomasZika
@ThomasZika Жыл бұрын
If you are following along with this tutorial but are having trouble to set the duration variable, try : audio.addEventListener("loadedmetadata", function() { songLength = audio.duration; console.log(songLength); }); in case its returning NaN :) Thanks for the tutorial
@kirillgrechukhin1298
@kirillgrechukhin1298 Жыл бұрын
still not working
@treyabolicum
@treyabolicum Жыл бұрын
@@kirillgrechukhin1298 if you show me your github repo or a codepen i can have a look
@victornoagbodji
@victornoagbodji 3 жыл бұрын
😊 🙏 😊 thank you so much for sharing this. css seems a beautiful presentation system at its core despite all the frustrating browser implementations.
@basam17
@basam17 3 жыл бұрын
I have a problem multiplying numbers by numbers BRAD does numbers by strings God bless this dude
@Gooloso98
@Gooloso98 3 жыл бұрын
for incrementing the song just use the module operator to a max of size .. no need to if statements. Like "index = (-- ++index) % size" always between 0 and size-1
@rahul_lyt
@rahul_lyt 3 жыл бұрын
what a beautiful project, amazing learning experience with this one, traversy for life.
@dirantechie9411
@dirantechie9411 3 жыл бұрын
Thanks Brad these projects are really cool helps in understanding how logic works especially for as beginners
@kurshadqaya1684
@kurshadqaya1684 3 жыл бұрын
It is written "Brad", but it is read "Motivation". Love from Azerbaijan.
@ES-jq6zo
@ES-jq6zo 3 жыл бұрын
We are waiting your Next Js full stack course🎊🎊🎊🎊🎊🎊😍😍😍
@itsahmd295
@itsahmd295 3 жыл бұрын
yess
@Fatima-ie5kj
@Fatima-ie5kj 3 жыл бұрын
yea exactly
@tacituskilgore2258
@tacituskilgore2258 3 жыл бұрын
when will Brad release it?🤔
@diatm1506
@diatm1506 3 жыл бұрын
Yes + backend Express
@CODINGISEASY
@CODINGISEASY 3 жыл бұрын
Laravel & vue
@Sawk-cy7wz
@Sawk-cy7wz 3 жыл бұрын
Why does the image go up when you set bottom to 0? It should go down.10:38
@mounir101
@mounir101 3 жыл бұрын
Traversy Media, you're great and thanks so much for helping us do amazing things.
@Djjslvnsp-dg7cv
@Djjslvnsp-dg7cv 3 жыл бұрын
I just purchased the udemy course! can't wait! :)
@nikofisk
@nikofisk 3 жыл бұрын
Combining my two passions: Music and Web developement - love it! I'm currently following your Javascript Udemy course, and it is so awesome!
@zepp906
@zepp906 3 жыл бұрын
Had fun with this. I think i added bits so you can search for songs and play them too with the pictures.
@thaanu
@thaanu 3 жыл бұрын
This is really cool. Helped to learn new CSS and JS. Thanks alot
@divyajyothineyyila2973
@divyajyothineyyila2973 2 жыл бұрын
It is really easy to understand for beginners...Thanks ..please keep doing many such programs 😊😊
@ashishmadhavacharya4108
@ashishmadhavacharya4108 3 жыл бұрын
What I can do is loop through music directory and check if file is mp3 then store it in array and grab the name of the file as an song name same way for jpg files that way I no longer need to add that in array manually just need to upload mp3 file and jpg file to their respective directory
@jimmyj.6792
@jimmyj.6792 3 жыл бұрын
Just awesome and so simple to understand 👌 thanks a lot for this nice course 😀😀
@am1n_dlt682
@am1n_dlt682 3 жыл бұрын
Great tutorial as always, love you brad🙌🙌🙌
@kasmail1
@kasmail1 3 жыл бұрын
my top channel.. kudos always
@cryionta
@cryionta 11 ай бұрын
why is the github code different than the video?
@rajiebrahma2238
@rajiebrahma2238 Жыл бұрын
Thanks a lot, Bro.. This video really helped me with some of the stuff I wasn't able to fix
@952a259
@952a259 Жыл бұрын
Brad, thanks a lot for a good and simple explanation! 👍
@yYggdtyy5433
@yYggdtyy5433 3 жыл бұрын
Thanks for the discount! bought the course
@bro939
@bro939 3 жыл бұрын
hello dear brad you are amazing men thank you so mush .i start learning html with a lot of courses with other guys .and yesterday i find your course really you are very kind because you give me lot of information .i want to thank for your efforts in videos .now I'm very happy to continue with you css and java .i looking for more courses about html i want be professional like you .i need your advices thank you bro
@Lorry127
@Lorry127 9 ай бұрын
Great video, you taught me a lot of new things, thank you !
@MrMiguelapb35
@MrMiguelapb35 3 жыл бұрын
Great little App, I loved it, You're the man Brad, thanks a lot
@techstackmedia4944
@techstackmedia4944 3 жыл бұрын
Your videos are always top notch
@tooveralls
@tooveralls 2 жыл бұрын
Why my music-container play image isn't turning when added the class play?
@lona3248
@lona3248 3 жыл бұрын
I just want to learn more and gain money then subs to your udmey bc you deserve more, thank you
@kylespencer7595
@kylespencer7595 3 жыл бұрын
solid tutorial! you're really fast at css
@IgneousGorilla
@IgneousGorilla Жыл бұрын
Quick questions, is this scalable (playlist of hundreds of files)? Also, would this work when hosted online (also hosting the mp3 files)?
@CodeRCreatives
@CodeRCreatives 3 жыл бұрын
Ohh thats now another a very super cool video by brad....A big motivation for us😀😀😎😁
@jasonclair5046
@jasonclair5046 3 жыл бұрын
That was allot of fun. Thanks for sharing that with us.
@tedsemon1326
@tedsemon1326 3 жыл бұрын
This is a great tutorial and I had a lot of fun and learned a lot following along. I've embedded a version of this into a multi-page audio player I've created, but the audio stops when I switch web pages. I'm wondering if there is a way to continue playing the audio, even when switching web pages? Thanks for all your great content Brad.
@jnralexander7913
@jnralexander7913 2 жыл бұрын
Did your own work? Because mine ain't playing i even typed everything and added his but it still ain't playing even after me inputting the song . please help me solve it
@sophiaqu7806
@sophiaqu7806 3 жыл бұрын
Thank you so much for this video, so lovely!!!
@Cal_03
@Cal_03 Жыл бұрын
stuck at about 27:32, I've named my images and audio the same and done everything correctly in the video so far, but when I change the value of songIndex, nothing happens, the image and title does not change, does anyone know any solutions? Thanks.
@LjCreepi
@LjCreepi 7 ай бұрын
I have the same problem, have you found a solution yet?
@Cal_03
@Cal_03 7 ай бұрын
@@LjCreepi sorry I stopped coding a while back lol
@LjCreepi
@LjCreepi 7 ай бұрын
@@Cal_03 no problem, wanted to delete it because I found a solution anyway. Instead of „songs“ when checking which song it is to play (idk which function, bc I am not at my pc right now, it is almost at the top of the js file) it was „song“
@kiche_allan
@kiche_allan 3 жыл бұрын
Nice one brad. Its 1am in Kenya and Ive got to learn this. But while following it, I am hearing some voices of people at background, did anyone notice?😁
@SahraClayton
@SahraClayton 3 жыл бұрын
Great video Brad, I literally commented on one of your videos a few weeks ago asking if you could do something with the audio tags
@NNNedlog
@NNNedlog 3 жыл бұрын
I like how you used KZbin audio library music so you don't get copyright
@anjalik1012
@anjalik1012 3 жыл бұрын
so how do we know we hav to use the class="fas fa-backward " as it depends on link tag we used (cdnjs)
@piusvictor8780
@piusvictor8780 3 жыл бұрын
Very interesting, great Job Brad ✨✨
@victory_lucky
@victory_lucky 3 жыл бұрын
you use class on music container to detect if the music is playing, I was wondering why you didn't use the built in boolean, which is audio.paused.
@adwaitdixit7753
@adwaitdixit7753 Жыл бұрын
The audio tag is now deprecated. The same audio tag doesn't work now. Now, we have to use
@vanessadesign93
@vanessadesign93 3 жыл бұрын
I got stuck on the audio.play(), my audio just wouldn't play and I couldn't figure out why
@sagewizard2929
@sagewizard2929 3 жыл бұрын
Please do the frontend part for this project "API Masterclass With Express & MongoDB" you have mentioned in your class you will do it.
@VisualizeYourMusic
@VisualizeYourMusic Жыл бұрын
that Hey! song scares me everytime xD otherwise great tutorial!
@namotmus627
@namotmus627 2 жыл бұрын
thank you for your good explanation while you doing it, I was fallowing code but I don't why audio cannot run and playing.
@ROC4Life96
@ROC4Life96 3 жыл бұрын
Great vid! I built a music player on my own where I used JS to handle a lot of the styling animation, but I like your coding structure much more, thanks!
@lukasluftlaufer1093
@lukasluftlaufer1093 3 жыл бұрын
So good! Thanks Brad!
@ALBDev
@ALBDev 3 жыл бұрын
As always. Wonderful. Thanks
@Cpt_Chirp
@Cpt_Chirp 3 жыл бұрын
fantastic tutorial as usual. thank you.
@stuffedstuff7086
@stuffedstuff7086 3 жыл бұрын
Interesting a beginner project let's go 🔥
@84music1
@84music1 3 жыл бұрын
This is genius!!! THANK YOU!
@SlavaGusev-wm5is
@SlavaGusev-wm5is 2 жыл бұрын
Is there a way for application to look for tracks itself from sertain folder without using additional librarys?
@NedumEze
@NedumEze 3 жыл бұрын
Hi Brad, you've been such a phenomenal Resource to all of us. Thank you very much. I found this Video when I searched for how to make a Media ( Audio & Video) Playlist. I was delighted to find your work is so close. But, could you make a supplement, showing how a clickable list of Videos or Audios can be added. Your Widget does not show the User what is Available. A user should be able to select from a list which Music or Video to play. Your schedule is scary though. Sorry for this more trouble.
@kasper369
@kasper369 3 жыл бұрын
amazing video, love from pakistan
@talitaholanda9658
@talitaholanda9658 2 ай бұрын
Scratch™ Makes Coding way better
@bvlgvkov
@bvlgvkov 2 жыл бұрын
i have a question. can you help me with this. I want to create a simple site, so that there is a music player and when switching between pages, the music continues to play, that is, it saves its state (the player, too). Could you tell me what technologies to use to satisfy my need. Example (soundcloud, spotify) Thanks!
@alejandrodinardo4804
@alejandrodinardo4804 3 жыл бұрын
Great tutorial, thank you very much!
@graziacassano9263
@graziacassano9263 3 жыл бұрын
how did you insert the mp3 audio files? I cannot make them work
@YosipmikeColin
@YosipmikeColin 3 жыл бұрын
Sigue creando proyectos así amigo que en KZbin casi no hay, saludos desde Colombia
@DanOhCaptainDaniel
@DanOhCaptainDaniel 3 жыл бұрын
I get this error: script.js:94 Uncaught TypeError: Cannot read property 'addEventListener' of null also, how could I add a Spotify API / playlist?
@marichkasynoratska2358
@marichkasynoratska2358 3 жыл бұрын
Great tutorial! Thank you so much!
@ernstmayer3868
@ernstmayer3868 3 жыл бұрын
Isn't it better/faster to use the querySelector method on the parent (.music-container) rather than on the document every time?
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 726 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Creative Agency Website From Scratch | HTML & CSS
1:26:51
Traversy Media
Рет қаралды 180 М.
ASMR Programming - Music Player App - No Talking
23:34
AsmrProg
Рет қаралды 87 М.
Async JS Crash Course - Callbacks, Promises, Async Await
24:31
Traversy Media
Рет қаралды 1,4 МЛН
Learn the JavaScript DOM With This Project - Memory Game
29:07
The Importance of Specialization in Coding
7:13
Traversy Media
Рет қаралды 243 М.
Beginner Vanilla Javascript Project Tutorial
1:15:19
developedbyed
Рет қаралды 906 М.
Build a Responsive Website | HTML, CSS Grid, Flexbox & More
2:02:22
Traversy Media
Рет қаралды 989 М.
Naughty Boy - La la la ft. Sam Smith (Official Video)
4:04
JavaScript Drag & Drop Sortable List Project
51:43
Traversy Media
Рет қаралды 134 М.
How To Make A Music Player Using HTML CSS And JavaScript
29:46
GreatStack
Рет қаралды 269 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН