MediaStreamRecorder
MediaStreamRecorder copied to clipboard
streams with audiotracks only are not recorded and give any data on ondataavailable event
I am creating a stream object from MediaStream API. and also I add an audio track to this stream. when i recorded it using MediaStreamRecorder i did not get any data on ondataavailable. But when i add both audio track and video track it works well. Please help me to figure this out
const stream = new MediaStream();
const audioTrack = // get audio tracks from a stream.
stream.addTrack(audioTrack);
const recorder = new MediaStreamRecorder(stream);
recorder.ondataavailable = function(){
// not even call
}
I have the same problem.
Id also like to know if anyone’s found a work around
same here please help