Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@cassette/player

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cassette/player

A simple, clean, and responsive visual wrapper for the HTML audio tag, built with React.

latest
Source
npmnpm
Version
2.0.0-beta.4
Version published
Weekly downloads
20
5.26%
Maintainers
1
Weekly downloads
 
Created
Source

@cassette/player

@cassette/player provides a responsive, zero-config-needed React media player component, implemented with @cassette/core. Its control components can also be consumed directly.

Installation

npm install @cassette/player

Player components included:

  • MediaPlayer - A media player component which plays a provided playlist of media
  • MediaPlayerControls - The UI component of MediaPlayer, which requires an ancestor PlayerContextProvider (and optional ancestor FullscreenContextProvider) in order to work

Control components included:

  • BackSkipButton - a button which, when clicked, either skips to the previous track in the playlist or to the beginning of the current playing track, depending upon the currently elapsed time
  • ForwardSkipButton - a button which, when clicked, skips to the next track in the playlist
  • FullscreenButton - a button which, when clicked, tells the surrounding FullscreenContextProvider (if present) to toggle fullscreen mode
  • MediaProgress - an interactive media progress bar which can be adjusted by dragging, along with a text overlay of the current track metadata and the elapsed time
  • MediaProgressDisplay - a non-interactive version of MediaProgress
  • MuteButton - a button which, when clicked, toggles whether the media's audio is muted
  • PlayPauseButton - a button which, when clicked, toggles whether the media is paused
  • RepeatButton - a button which, when clicked, cycles to the next repeatStrategy (none, playlist or track)
  • ShuffleButton - a button which, when clicked, toggles whether the playlist is being played in specified order or in shuffle order
  • Spacer - provides a buffer between control components
  • VolumeControl - a MuteButton which, when hovered (with a mouse) or initially tapped (on touch screens), displays a bar for adjusting media volume

Find full documentation here!

Keywords

audio

FAQs

Package last updated on 27 Sep 2019

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