staskobzar / vue-audio-visual

VueJS audio visualization components
MIT License
693 stars 111 forks source link

How to control the play / pause by code? #19

Closed dingming1994 closed 4 years ago

dingming1994 commented 5 years ago

Hi.

It is possible to control the play/pause status by JS code?

It seems that the play/pause for audio component will not be sync with the UI component.

agravat202 commented 5 years ago

You may fire trigger .click() if you hide/remove default buttons.

staskobzar commented 5 years ago

Also, it is possible to use "ref-link" and create your own <audio> element. Then you can control your element with .play() and .pause() methods.