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

The result return from stop() does not have duration value #8

Closed
iNima opened this issue Oct 29, 2019 · 2 comments
Closed

The result return from stop() does not have duration value #8

iNima opened this issue Oct 29, 2019 · 2 comments
Assignees

Comments

@iNima
Copy link

iNima commented Oct 29, 2019

Hi there,

When I stop the audio recording I expect to receive the total duration of the recorded audio in the duration parameter of the result.
var result = await this.audioRecorder.stop();
But the duration of the result is always 0.

Currently, a workaround for this would be this:

Recording recording = await this.audioRecorder.current();
Duration duration = recording.duration;
var result = await this.audioRecorder.stop();

Which is probably not that accurate since it is a little bit before actually stopping the recorder.

Could you provide the correct duration in the result of stop() method as well?

@nikli2009 nikli2009 self-assigned this Oct 29, 2019
@nikli2009
Copy link
Contributor

Hi buddy, just released 0.5.3, in this build, it's able to use stop to get last status of recording

var result = await this.audioRecorder.stop();

Would you like to have a try ? :)

@iNima
Copy link
Author

iNima commented Oct 30, 2019

Great! It works correctly now.
Thanks @nikli2009

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

No branches or pull requests

2 participants