1.0.3 • Published 3 years ago

sound-player-element v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

\ Web Component

A Lit Web Component that allows you to reference and play an audio file in the browser with minimal config.

Uses the Web Audio API to take a provided src url and control playback.

Usage

npm i sound-player-element
# OR
yarn add sound-player-element
<html>
  <head>
    <!-- ... -->
  </head>
  <body>
    <sound-player id="audio-el-id" src="https://url-to-audio/file.mp3"></sound-player>
  </body>
</html>

Features

  • Play/pause audio
  • Display progress
  • Volume controls
  • Skip/seek audio
  • Skip beginning/end button