chrisguttandin / extendable-media-recorder

An extendable drop-in replacement for the native MediaRecorder.
MIT License
272 stars 13 forks source link

Add .requestData() #679

Open acharlop opened 1 year ago

acharlop commented 1 year ago

Hey thanks for the lib, so far the only thing blocking me from using it is requestData() is a requirement. What do you think the effort would be, and do you have a general idea of what needs to be done? I'm happy to take a shot at it and make a PR if it would help. 🙏

harisrab commented 1 year ago

Why is this not there? I'm in need of this ASAP as well. Library is such a clean implementation and this could definitely help ig.

gitnlsn commented 1 year ago

The IMediaRecorder interface could be extended from native MediaRecorder.

paschaldev commented 8 months ago

I desperately need this feature. Willing to work on a PR @acharlop if I can reach out to you for help / questions.

In my case, I need to get the current audio data when recording is paused (not stopped). This is possible with native MediaRecorder using timeslice => mediaRecorder.start(timeslice) and mediaRecorder.requestData().

tscritch commented 6 months ago

This is blocking me as well. Would it need anything more than a passthrough function like these? https://github.com/chrisguttandin/extendable-media-recorder/blob/master/src/factories/media-recorder-constructor.ts#L215-L217

If it's that simple I'll put that PR together tomorrow 👍🏻