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

@futuremeng/vue3-wave-audio-player-list

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@futuremeng/vue3-wave-audio-player-list

Vue 3 Component for wave audio player list

  • 1.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-81.25%
Maintainers
0
Weekly downloads
 
Created
Source

Vue 3 wave-audio-player-list

Image demo

NPM install

npm i @futuremeng/vue3-wave-audio-player-list

Import ans use

<template>
  <div style="max-width: 250px">
    <Vue3WaveAudioPlayerList
      wave-type="mirror"
      :data="demo"
      :disable-seeking="true"
      :wave-animation="false"
      :current-time-visible="true"
      :duration-time-visible="true"
    />
  </div>
</template>
<script>
  import Vue3WaveAudioPlayerList from 'vue3-wave-audio-player-list'

  export default {
    name: 'App',
    components: {
      Vue3WaveAudioPlayerList,
    },
    data() {
      return {
        example_options: {
          samples: 50,
          type: 'steps',
          paths: [
            { d: 'V', sy: 0, x: 0, ey: 100 },
            {
              d: 'A',
              sx: 0,
              sy: 100,
              ex: 100,
              ey: 100,
              rx: 10,
              ry: 10,
              angle: 180,
              arc: 1,
              sweep: 1,
            },
            { d: 'V', sy: 0, x: 100, ey: 100 },
          ],
        },
        index: 0,
        demo: [
          {
            title: '国风1',
            src: 'https://one-ywcbs-static.oss-cn-beijing.aliyuncs.com/abc.mp3',
          },
          {
            title: '国风2',
            src: 'https://one-ywcbs-static.oss-cn-beijing.aliyuncs.com/2.mp3',
          },
          {
            title: '国风3',
            src: 'https://one-ywcbs-static.oss-cn-beijing.aliyuncs.com/3.mp3',
          },
        ],
      }
    },
  }
</script>

Attributes

NameRequiredTypeDescription
dataTrueArrayArray of objects with the following structure:{ title:'',src:''}
wave-widthTrueIntegerWidth of the Waves. (Not responsive, Also remember that the buttons and the timing strings will take extra ~250px. For example, if(container === 500px) => wave-width = 500 - 250 = 250 )
wave-heightTrueIntegerHeight of the waves (Not Responsive)
wave-typeFalseStringType of wave. (Not working yet)
wave-optionsFalseObjectSet settings for the waves (Not working yet)
load-audio-onmountFalseBooleanLoad the path and audio data on mounted
disable-seekingFalseBooleanDisable time seeking
current-time-visibleFalseBooleanShow current time
duration-time-visibleFalseBooleanShow duration time
disable-seekingFalseBooleanDisable seeking
load-audio-onmountFalseBooleanLoad the path and audio data on mounted
circleFalseBooleanShow circle button

Events

I have added all the events that html has in the audio tag with a "on-" prefix. Additional events:

NameRequiredTypeReturnDescription
on-playFalseFuncBooleanTriggered when user click on play button

Check MDN Doc for all the events.

Report bug or Suggestion

please send a mail at futuremeng@gmail.com. You can also open any issue in the GitHub page. Thanks for using this package.

Inspired by

vue3-wave-audio-player wave-path-audio-player package waveform-path package

Keywords

FAQs

Package last updated on 31 Oct 2024

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