npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-tunes-player

v6.0.0

Published

A simple .ogg/.mp3 player.

Downloads

32

Readme

React Tunes Player

npm status Build Status Coverage Status

A simple responsive .ogg/.mp3 player.

react-tunes-player-example

Demo

Demo - https://react-tunes-player.mfbproject.co.za/

Installation

npm install --save react-tunes-player

or

yarn add react-tunes-player

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import ReactTunesPlayer from 'react-tunes-player';

const data = [
  {
    tune:
      'https://react-tunes-player.mfbproject.co.za/assets/audio/the_lego_tune.ogg',
    name: 'The lego tune',
    album: 'https://react-tunes-player.mfbproject.co.za/assets/images/dune.jpg',
  },
  {
    tune:
      'https://react-tunes-player.mfbproject.co.za/assets/audio/bensound-funkysuspense.mp3',
    name: 'Funky Suspense',
    album:
      'https://react-tunes-player.mfbproject.co.za/assets/images/funkysuspense.jpg',
  },
];

ReactDOM.render(
  <ReactTunesPlayer tunes={data} />,
  document.querySelector('.app'),
);

Example folder on how to use react-tunes-player

example

Tune Type

| Name | Type | Description | Example | | :----| :----| :-----------| :-----------| | tune | string | This is the tune location | tune: 'https://react-tunes-player.mfbproject.co.za/assets/audio/the_lego_tune.ogg' | | name | string | This is the tune name | name: 'The lego tune' | | album | string | This is the tune album art location | album: 'https://react-tunes-player.mfbproject.co.za/assets/images/dune.jpg' |

Example:

// Tune Type
{
     tune: "/assets/audio/the_lego_tune.ogg",
     name: "The lego tune",
     album: "/assets/images/dune.jpg"
}

Available Props

| Prop | Type | Description | |:----------|:--------------|:----------------------------------------| | tunes | Array<Tune> | Array of Tune Type | | oldPlayer | boolean | load old v5 player - default is false | | darkMode | boolean | light or dark them - default is true |

Example:

// tunes
[
 {
     tune: "/assets/audio/the_lego_tune.ogg",
     name: "The lego tune",
     album: "/assets/images/dune.jpg"
 }
]

Responsive Design

375 Mobile

react-tunes-player-mobile.png

768 Tablet

react-tunes-player-tablet.png

1024 Laptop

react-tunes-player-laptop

Greater than 1024 is the same laptop

Available CSS Overrides

| Class | Description | |:-------------------------------------|:---------------------------------------------------------------------------| | .album | Override Album container | | .album-cover | Override Album Cover container | | .album-img | Override Album Image | | .album-header | Override Album Header container | | .album-header-font | Override Album Header Font | | .player | Override Player Container (Main Grid) | | .player-controls | Override Player Controls Container | | .player-controls-list | Override Player Controls List Container | | .player-controls-list-skip-back | Override Player Controls List Skip Back Button Container | | .skip-back | Override Skip Back Button | | .player-controls-list-play-circle | Override Player Controls List Play Button Container | | .play-circle | Override Play Button | | .player-controls-list-pause-circle | Override Player Controls List Pause Button Container | | .pause-circle | Override Pause Button | | .player-controls-list-skip-forward | Override Player Controls List Skip Forward Button Container | | .skip-forward | Override Skip Forward Button | | .seek-control | Override Seek Control Container | | .seek-control-time-progress | Override Seek Control Time Progress | | .seek-control-progress | Override Seek Control Progress | | .seek-control-time-total | Override Seek Control Time Total | | .volume-controls | Override Volume Controls Container | | .volume-controls-list | Override Volume Controls List Container | | .volume-controls-list-x | Override Volume Controls List X Container (Mute Button Container) | | .volume-x | Override Mute Button | | .volume-controls-list-0 | Override Volume Controls List 0 Container (Low Volume Button Container) | | .volume | Override Low Volume Button | | .volume-controls-list-1 | Override Volume Controls List 1 Container (Medium Volume Button Container) | | .volume-1 | Override Medium Volume Button | | .volume-controls-list-2 | Override Volume Controls List 2 Container (High Volume Button Container) | | .volume-2 | Override High Volume Button Container |

Music Credits

Royalty Free Music from Bensound

Dune: The Battle for Arrakis

License

MIT License.

Copyright (c) 2017 Muzikayise Flynn Buthelezi (zuluCoda).