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

discard doesn't work when using recorderControls. saves blob instead #119

Open
zer0dt opened this issue Feb 3, 2024 · 4 comments
Open

Comments

@zer0dt
Copy link

zer0dt commented Feb 3, 2024

(shouldSave || recorderControls) &&

@InaaraKalani
Copy link

+1
I am having the same issue. Please make this a priority fix since it's a critical bug.

@mlatysh
Copy link

mlatysh commented Jul 31, 2024

Same for me. As I understand root problem is whenever .stopRecording being called it triggers onRecordingComplete even if it's like "discard" action or something so it's impossible to "discard" recording. It's happening even in provided examples with hook. "Stop" button works properly only if you're not using useAudioRecorder hook

@VijayPonni
Copy link

Yes I too facing the same issue. Expect a solution soon.

Thanks in advance

@kumarsoni7999
Copy link

kumarsoni7999 commented Nov 6, 2024

I am facing same issue
I tried using ref but still not worked

and finally i got the solution, instead of using discard method use

useEffect(() => {
const discardButton = document.querySelector('[data-testid="ar_cancel"]');
if (discardButton) {
(discardButton as HTMLButtonElement).click();
}
}, [])

This works absolutely fine for me to discrad audio

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

5 participants