Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wave-audio-path-player

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wave-audio-path-player

Simple audio player webcomponent customizable with waveform.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
increased by57.14%
Maintainers
1
Weekly downloads
 
Created
Source

npm npm npm bundle size GitHub license Twitter URL

wave-audio-path-player

Image demo

Simple audio player webcomponent customizable with waveform. Created with waveform-path.

Live Demo

Installation

npm i wave-audio-path-player

Usage

Import

import 'wave-audio-path-player'

Hosted

<script type="module" src="YOUR_PATH/wave-audio-path-player.umd.js"></script>

Using

<!-- Basic -->
<wave-audio-path-player src="hello_world.ogg" wave-width="200" wave-height="40"></wave-audio-path-player>

<!-- Complete -->
<wave-audio-path-player src='hello_world.ogg' wave-width="200" wave-height="40" color="#55007f" wave-color="#55007f" wave-progress-color="#ff00ff" wave-slider="#ffaaff" wave-options='{"samples":40,"type":"steps","width":192,"height":40}'></wave-audio-path-player>

Custom CSS

wave-audio-path-player {
  margin-top: 10px;
  margin-bottom: 10px;
}

#demo1::part(player) {
  background:rgb(0, 0, 0);
  padding: 15px 0px;
  border-radius: 20px;
  border:1px solid black;
}

#demo1::part(button) {
  stroke: white;
  fill:white;
}

#demo1::part(currenttime), #demo1::part(duration) {
  color:white;
  font-weight: bold;
}

#demo1::part(path1) {
  stroke: white;
}

#demo1::part(path2) {
  stroke:fuchsia;
}

Attributes

NameRequiredTypeDescription
srcTrueaudio fileSource path to audio file
wave-widthTruepxNumber of pixels
wave-heightTruepxNumber of pixels
colorFalsecolorColor of elements
wave-colorFalsecolorColor of wave incomplete (Only for wave-option "animation":false)
wave-progess-colorFalsecolorColor of wave complete or animation
wave-sliderFalsecolorColor of slider thumb
wave-optionsFalseobjectObject of waveform-path (width and height is replaced for wave-width and wave-height)

Keywords

FAQs

Package last updated on 02 Mar 2022

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