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

vue-audio-player-component

v1.0.2

Published

```shell $ npm install --save vue-audio-player-component ```

Downloads

51

Readme

Installing

$ npm install --save vue-audio-player-component

Usage

<script>
import VueAudioPlayer from 'vue-audio-player.vue';

export default {
  ...

  components: {
    VueAudioPlayer
  },

  ...
}
</script>
<vue-audio-player src="https://d3ctxlq1ktw2nl.cloudfront.net/staging/2021-05-25/fb095de4c931b43df24cef68541e89c6.m4a"/>

<vue-audio-player color="#2edeb0" rangeColor="#2edeb050" src="https://d3ctxlq1ktw2nl.cloudfront.net/staging/2021-05-17/e65d4630980a822363aee15b84b760e6.m4a"/>

<vue-audio-player color="rgb(29, 161, 242)" rangeColor="rgba(29, 161, 242, .5)" src="https://d3ctxlq1ktw2nl.cloudfront.net/staging/2021-02-19/337f657d44eee46c63a79b7302b31f6b.m4a"/>

<vue-audio-player color="#333333" rangeColor="#33333350" src="https://d3ctxlq1ktw2nl.cloudfront.net/staging/2021-03-05/1135fcddf2d57ba8a42417e36d98d825.m4a"/>

Code result

Props

props: {
    // audio file 
    src: {
      type: String,
      default: null,
    },

    // if true the audio player will play automatically
    autoPlay: {
      type: Boolean,
      default: false,
    },

    // on audio ended event
    ended: {
      type: Function,
      default: () => {},
    },

    // The canplay event occurs when the browser can start playing the specified audio.
    canPlay: {
      type: Function,
      default: () => {},
    },
    // it is the color of play icon, back icon, mute icon, minutes and seakbar thumb
    color: {
      type: String,
      default: "#FFF",
    },

    // it specifies that the audio will start over again, every time it is finished.
    loop: {
      type: Boolean,
      default: false,
    },
    // it is seakbar background color of volume and the audio 
    rangeColor: {
      type: String,
      default: "#FFFFFF50",
    },
}

enjoy it! lmao