Closed
Description
Is your feature request related to a problem? Please describe.
I'm trying to use flutter-webrtc to get a stream of audio from local microphone, in real time.
I'm using MediaRecorder.startWeb(), but the onDataChunk is simply not firing until the stream closes.
Describe the solution you'd like
I'd like to be able to specify timeslice in which I could get audio samples in real time.
It's part of MediaRecorder API: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/start
I actually tried modifying media_recorder_impl.dart in package dart_webrtc to change the line:
_recorder.start();
to:
_recorder.start(10);
...and it worked great! The callback started firing.
Metadata
Metadata
Assignees
Labels
No labels