Open drpond1 opened 6 years ago
Looks like it is available in modern browsers: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable
Update on any plans to address this issue is requested.
MediaRecorder
is useless without it, but there is a workaround
_recorder.addEventListener('dataavailable', (Event event) {
print("datavailable ${event.runtimeType}");
final Blob blob = JsObject.fromBrowserObject(event)['data'];
print("blob size: ${blob.size}");
});
Thank you for your help.
There is now a solution that does not need JSObject that I only now discovered when changing from dart:js to the js/dart.js package.
Simply check the Event is a BlobEvent and then cast it. castedBlobEvent.data returns the desired Blob?
Missing the function MediaRecorder.ondataavailable