Socket
Socket
Sign inDemoInstall

@irvingjs/audio-player

Package Overview
Dependencies
5
Maintainers
3
Versions
655
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @irvingjs/audio-player

Persistent audio player and related components for Irving


Version published
Weekly downloads
1K
Maintainers
3
Install size
23.9 MB
Created
Weekly downloads
 

Readme

Source

Irving Audio Player

A persistent audio player is one of the most unique features that Irving offers. Since Irving functions as a single page application after being hydrated, we can easily offer an audio player that travels with the user and offers a seamless experience.

Installation

  1. npm install @irvingjs/audio-player --save
  2. Add necessary components your project componentMap.js
  3. Package includes a component called <AudioElement> to connect/interface with the HTML audio element. This component:
    • Should only have a single instance appear on the page. Because of this, we recommend you include it directly in your project's <App> component.
    • As described below, this package does not contain any user interface for controlling the <AudioElement> beyond a simple play/pause button. Volume, scrubbing, next/prev buttons, etc. are up to you—there are, however, redux actions provided for managing that functionality.

Components

  • <AudioElement> - HTML <audio> tag and relevant hooks for controlling it via redux state. Note that beyond the <PlayPauseButton /> component (below) this package does not provide a UI for controlling audio.
  • <PlayPauseButton /> - Component for loading, playing, and pausing an audio file. The state of this button will be synced with the state of the <AudioElement /> via redux.

FAQs

Last updated on 05 Apr 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc