You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Mudassar-dev I am using this package in my application. I too want to implement the auto stop feature in mine. So, It will be very useful to me if we can achieve this.
Hi @Mudassar-dev we can implement this using the recordingTime property provided by useAudioRecorder hook.
According to the documentation, the recording time property keeps on updating for every seconds. It starts with value 0 and increasing by 1 for every second. We can track this value in useEffect implement logic to check wheather the value reached the desired time limit. If so we can call stopRecording from useAudioRecorder hook.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Package info (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: