8000 MediaRecorder.startWeb() should expose the timeslice parameter · Issue #883 · flutter-webrtc/flutter-webrtc · GitHub
[go: up one dir, main page]

Skip to content
MediaRecorder.startWeb() should expose the timeslice parameter #883
Closed
@noinskit

Description

@noinskit

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0