Giter Site home page Giter Site logo

adrianhajdin / project_music_player Goto Github PK

View Code? Open in Web Editor NEW
972.0 8.0 255.0 161 KB

Master modern web development by building an improved version of Spotify. With a modern homepage, fully-fledged music player, search, lyrics, song exploration features, search, popular music around you, worldwide top charts, and much more, this is the best music application you can currently find on YouTube.

Home Page: https://jsmastery.pro

JavaScript 97.32% HTML 1.00% CSS 1.68%
javascript rapidapi reactjs tailwindcss

project_music_player's Introduction

project_music_player's People

Contributors

adrianhajdin avatar tidbitsjs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

project_music_player's Issues

vite' is not recognized as an internal or external command, operable program or batch file.

i have installed vite and npm in extensions but i am not being able to run it i have been stuck at it for more than one full day

PS C:\Users\user\Desktop\lyriks_starter_code\lyriks_starter_code> npm run dev

[email protected] dev
vite

'vite' is not recognized as an internal or external command,
operable program or batch file.
PS C:\Users\user\Desktop\lyriks_starter_code\lyriks_starter_code>

its coming like this please help me i have gotten stuck at the very start and i am totally new at this

Song Details Not available

As Shazam Core API is not free, i started using Shazam API my discover page and Top Play is working great but, i m getting stuck at song details, when i console.log(songdata) it is showing null that is means, something up while fetching the song detail.

here's my code for shazam API

shazam

neglect shazamCore wherever it is written.

Lyrics not found

The original lyrics api has depreciated and new one is https://shazam-core.p.rapidapi.com/v2/tracks/details'

However it still does not work?

My shazamCore Code looks like this:

`import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";

export const shazamCoreApi = createApi({
reducerPath: "shazamCoreApi",
baseQuery: fetchBaseQuery({
baseUrl: "https://shazam-core.p.rapidapi.com/",
prepareHeaders: (headers) => {
headers.set(
"X-RapidAPI-Key",
"e919fc6e47msh434a4c7817b528dp1d9dc2jsn46121b2f2e3d"
);
return headers;
},
}),
endpoints: (builder) => ({
getTopCharts: builder.query({ query: () => "v1/charts/world" }),
getSongsByGenre: builder.query({
query: (genre) => v1/charts/genre-world?genre_code=${genre},
}),
getSongsByCountry: builder.query({
query: (countryCode) => v1/charts/country?country_code=${countryCode},
}),
getSongsBySearch: builder.query({
query: (searchTerm) =>
v1/search/multi?search_type=SONGS_ARTISTS&query=${searchTerm},
}),
getArtistDetails: builder.query({
query: (artistId) => v2/artists/details?artist_id=${artistId},
}),
getSongDetails: builder.query({
query: ({ songid }) => v2/tracks/details?track_id=${songid},
}),
getSongRelated: builder.query({
query: ({ songid }) => v1/tracks/related?track_id=${songid},
}),
}),
});

export const {
useGetTopChartsQuery,
useGetSongsByGenreQuery,
useGetSongsByCountryQuery,
useGetSongsBySearchQuery,
useGetArtistDetailsQuery,
useGetSongDetailsQuery,
useGetSongRelatedQuery,
} = shazamCoreApi;
`

What am I doing wrong?

Error occurred in the <TopPlay> component

Tried using try-catch block but not solved yet
VM488 react_devtools_backend.js:4012 The above error occurred in the component:

at TopPlay (http://localhost:3000/src/components/TopPlay.jsx?t=16730194284:112:20)
at div
at div
at div
at div
at App (http://localhost:3002/src/App.jsx?t=1673013325484:25:7)
at Router (http://localhost:3000/node_modules/.vite/deps/react-router-dom.js?v=87445b7f:2651:15)
at BrowserRouter (http://localhost:3000/node_modules/.vite/deps/react-router-dom.js?v=87445b7f:3035:5)
at Provider (http://localhost:3000/node_modules/.vite/deps/chunk-4KZAFHVU.js?v=87445b7f:1416:3)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

netlify deploy problem

if i switch to around you tab, it won't return any data, but in localhost it works smoothly.

around-you

if i try to refresh the page it gives me 404 error.

404

Top Artists and Top Charts tab works fine but refreshing these page will lead to 404 error, every subpath returns this 404 error.

top
404

No search bar or menu on mobile devices

When in mobile view in devtools, everything works fine. On actual mobile, after deployment, there is no search bar nor hamburger menu at the top. Could someone please give me some insight. I have tried multiple screen sizes and same thing. Thanks. I have included a screenshot from my phone.

music-mobile-screenshot

UX issue on sidebar nav clicks.

On mobile view, when I click on an item in the sidebar menu, it appears nothing happens. It actually does update the info on the page, but you have to scroll down to it. There is no indication that anything has changed, unless you just happen to know it's supposed to. I would expect it to either open a standalone page, or scroll down to the correct section. The same behavior shows when cloning the original depo here. There is a handleClick function in the page, but it doesn't seem to have any instructions.

How could I resolve this issue?

const NavLinks = ({ handleClick }) => (
  <div className='mt-10'>
    {links.map((item) => (
      <NavLink
        key={item.name}
        to={item.to}
        className='flex flex-row justify-start items-center my-8 text-sm font-medium text-gray-400 hover:text-cyan-400'
        onClick={() => handleClick && handleClick()}
      >
        <item.icon className='w-6 h-6 mr-2' />
        {item.name}
      </NavLink>
    ))}
  </div>

Mobile issue

Everything is working good but after deploying the app on netlify, i opened the link using my mobile handset, i noticed there is no search bar and hamburger menu. Also when i am clicking to see more in top charts app gets crashed in mobile device but the irony is when i inspecting through my laptop using responsiveness everything is good but in mobile device i don't understand what the problem is.

Swiper not working in TopPlay component

Hello there!
I have already fixed the code in Top Play component as solved in issue #24.
Now the page displays without errors. However, the swiper is not working properly, and in the Top Artists does not show anything but the alt names of the images
screenshot1
screenshot2

Artist Details Page not showing Related Songs

On Artist Details Page below "Details header" component "Related Songs" not showing up. On Song details page it showing up properly. But on Artist details page it is showing only skeleton of Songcard component

Related songs play button not working

Hi. The related songs showing under artist song details is neither working or playing the current song clicked. I think the problem might be from the handlePlayClick function passed into the props.

The MusicPlayer component is throwing an error

The currentSongs is undefined every time I run the application, due to which the application is unable to play songs, and if I add a '?' after the currentSongs in the useEffect hook then the songs are playing but all the functionality like the next song, prev song, shuffle will not be working.

data.map is not a function

data.map chaining operator in Discover.jsx keeps rendering "data?.map is not a function" in console. Please can you help with this.

Spotify Clone 2.0 Responsive Layout Issue

After following the "Build and Deploy a Better Spotify 2.0 Clone Music App with React 18! (Tailwind, Redux, RapidAPI)" tutorial, my app is improperly displaying the layout in the browser. I'm using a 13 inch MacBook pro. What do I need to adjust in order to get the layout to display properly?
Screen Shot 2022-11-04 at 12 29 52 PM

I'm not sure which of the following is the cause of the problem. But I did try manipulating the some of the css values, however this didn't fix the issue.
Screen Shot 2022-11-04 at 12 38 54 PM
Screen Shot 2022-11-04 at 12 39 23 PM

These are the results I am seeking to get: (Without having to decrease the zoom value of my browser.)
Screen Shot 2022-11-04 at 12 30 24 PM

music playerwont work

hi.music player is not working for me.i think the problem is from onLoadedData in audio props cuz i put a log in that fn and never called.and bcs of that song never shows duration and never gets play.i cloned this repo and its exact that code.i must say that i get connection whit shazam core api and get 50 musics and everything works fine but playing songs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.