New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aplayer-react

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aplayer-react

The missing APlayer for React applications

  • 1.0.2-alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-42.86%
Maintainers
1
Weekly downloads
 
Created
Source

aplayer-react

APlayer for your React application.

ScreenShot

Features

The APlayer feataures you love with the APlayer options you are familiar with.

  • Beautiful and clean UI
  • Lyrics scroll
  • Playlist with repeat & shuffle controls
  • Custom theme color / Self-adapting theme color

Usage

Install aplayer-react along with aplayer.

npm i aplayer-react aplayer

Import APlayer component from aplayer-react package, and import stylesheet from aplayer package.

import { APlayer } from "aplayer-react";
import "aplayer/dist/APlayer.min.css";

render(
  <APlayer
    audio={{
      name: "Dancing with my phone",
      artist: "HYBS",
      url: "https://music.163.com/song/media/outer/url?id=1969744125",
    }}
    autoPlay
  />
);

Props

PropDefaultDescription
audioSongs' information. Could be a single object or an array of objects
audio.name"Audio name"Title of the song
audio.artist"Audio artist"Artist name of the song
audio.urlUrl of the media source to play
audio.coverUrl of the album cover image
audio.lrcLyrics of the song in raw LRC format
audio.themeOverride theme color for this song. See theme prop for theme color explanation
theme"#ebd0c2"Theme color of the player that applies to progress bar, volume control bar and playlist marker.
autoPlaySee autoplay attribute of <audio> element
volume0.7Initial volume of the player.
initialLoop"all"Initial loop mode of the player
initialOrder"list"Initial playlist order of the player

Who uses aplayer-react?

Keywords

FAQs

Package last updated on 07 Jan 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc