Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Holding the button #5

Open
avreen-k opened this issue Oct 4, 2019 · 4 comments
Open

Holding the button #5

avreen-k opened this issue Oct 4, 2019 · 4 comments

Comments

@avreen-k
Copy link

avreen-k commented Oct 4, 2019

Is it possible to start recording by just one click instead of holding the button?

@florianmartens
Copy link

I'm looking for the same thing.

@transitive-bullshit
Copy link
Owner

PRs welcome 😄 It shouldn't be too hard to add as this is a UI only change.

@florianmartens
Copy link

Hey, fair point! First of all, I'm super happy that you've built the component!

From what I see in your implementation the two behaviours are quite different. I think the component would feel quite clumsy if you'd e. g. make users choose via a prop if they what the mouse-down-up behaviour or click-to-start behaviour.

Also, I'd maybe like to add some animation. Do you see a simple way to get increments of the recorded blobs with access to the recorded volume or smth that could serve as a basis for an animation?

@transitive-bullshit
Copy link
Owner

The web audio api offers access to the underlying waveform data as it's coming in which you could use to power an equalizer-type visualization via FFT. There are examples online of this type of thing if your Google fu is on point 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants