Giter Club home page Giter Club logo

vueaudiovisible's Introduction

Audio Visible

简体中文

A USELESS Wave form Component for Vue.

ScreenShot

Preview

Param

Param Type Default Explain
Volume Number 0.5 Volume of audio player
Width Number 500 Width of audio player(px only)
Height Number 200 Height of audio player(px only)
HeightRadio Number 0.7 Range of segment height
SegmentWidth Number 2 Width of each segment (px only)
SegmentSpace Number 3 Space between two segement(px only)
PixelRadio Number 3 * Oversampling range, canvas in small value will be blurry
timeline Boolean true Show timeline or not
emitProgressTime Number 1000 An intervening time between emit Progress Data

Event

Name Playload Describe
changeProgress {progress: number,current: number, duration: number} Triggered when progress changed. You can use param emitProgressTime to modify the frequency of emit
audioEnd null Triggered when audio is end.
loadAudio null Triggered when load audio successfully
loadError null Triggered when load audio fail

Todo

  • Parallel resolve.
  • Create Audio from buffer rather than sending another request.
  • multiple audio file support.

Run

# Clone and Install
git clone https://github.com/244462375/VueAudioVisible.git
cd VueAudioVisible
yarn install

Then, you must copy a audio file to VueAudioVisible/public and rename to music.mp3.

After that, you can start the dev server.

yarn start

Now, you can see the demo in http://localhost:8080.

vueaudiovisible's People

Contributors

wizzeng avatar

Stargazers

TaroPieAudioTech avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.