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

I need Two asynchronous events for return encode audio in two diferents formats, how I can do this?? #38

Open
hernanjls opened this issue Feb 13, 2020 · 0 comments

Comments

@hernanjls
Copy link

Hello, I have the following requirement, after starting the encoder with mp3, when the 'onComplete' event is finished for audios of more than one minute in mobile browsers, it takes several seconds to show the audio interface to the user, but if only wav encoder is used this does not happen.
The scenario I have is the following: I need to immediately show the audio in the interface so I have no alternative but to use wav encode, but I also need to upload the audio to a server to be saved in a folder on that server, but it is required to be in mp3 format (this due to the size of wav that is very large), the ideal to solve my requirement would be that there are two events for example: 'onCompleteWav' and 'onCompleteMp3'

and that each happens asynchronously so I could use the blob returned by 'onCompleteMp3' to load it to the server and the other
blob returned by 'onCompleteWav' to show it in the interface, how can I modify the script to achieve my mission?

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

1 participant