Socket
Book a DemoInstallSign in
Socket

netease-music-player

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netease-music-player

Building netease-cloud-music style music player with React

0.1.3
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

This is a Next.js project bootstrapped with create-next-app.

CodeFactor GitHub Release Date npm package NPM downloads GitHub license code style: prettier

Demo

https://user-images.githubusercontent.com/58759688/201613972-351dd14b-175b-4bf4-8e3f-b9b108768002.mp4

install

suggest use pnpm to install the package.

pnpm i netease-music-player
# or
npm i netease-music-player
# or
yarn add netease-music-player

useage

<MusicPlayer
  name={"Beautiful World (Da Capo Version)"}
  artist={"宇多田ヒカル"}
  url={"https://music.163.com/song/media/outer/url?id=1824020873.mp3"}
  picUrl={
    "https://p2.music.126.net/l3G4LigZnOxFE9lB4bz_LQ==/109951165791860501.jpg?param=34y34"
  }
  onCollect={() => {
    console.log("collected");
  }}
  onModeChange={(mode) => {
    console.log(mode);
  }}
  onPictureInPicture={() => {
    console.log("pip");
  }}
  onPlayNext={() => {
    console.log("play next");
  }}
  onPlayPrev={() => {
    console.log("play prev");
  }}
  onShare={() => {
    console.log("share");
  }}
  playlistLength={10}
/>

props

export type ModeProps = "single-cycle" | "list-cycle" | "random";

export type MusicPlayerProps = {
  name: string | React.ReactNode;
  artist: string | React.ReactNode;
  url: string;
  autoplay?: boolean;
  picUrl: string;
  onPlayNext: () => void;
  onPlayPrev: () => void;
  onPictureInPicture: () => void;
  onCollect: () => void;
  onShare: () => void;
  onModeChange: (mode: ModeProps) => void;
  playlistLength: number;
};

develop

first, clone this repository.

git clone https://github.com/tohsaka888/netease-music-player.git

then, install the packages.

pnpm i

open the develop server

pnpm dev

license

MIT

Keywords

knowledge-graph

FAQs

Package last updated on 19 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.