Skip to content

Commit a485e48

Browse files
authored
Fix #883 in flutter_webrtc
Now there is a timeslice argument in startWeb Function of MediaRecorder, which also resolves the problem of onDataChunk Method not triggering unless we stop the recording.
1 parent 5ebaab9 commit a485e48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/media_recorder.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ abstract class MediaRecorder {
1616
MediaStream stream, {
1717
Function(dynamic blob, bool isLastOne)? onDataChunk,
1818
String mimeType,
19+
int timeSlice = 1000,
1920
});
2021

2122
Future<dynamic> stop();

0 commit comments

Comments
 (0)