MediaStreamRecorder icon indicating copy to clipboard operation
MediaStreamRecorder copied to clipboard

streams with audiotracks only are not recorded and give any data on ondataavailable event

Open vishnusadanandan opened this issue 5 years ago • 3 comments

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
}

vishnusadanandan avatar Jan 29 '20 12:01 vishnusadanandan

I have the same problem.

yi-ge avatar Aug 31 '20 15:08 yi-ge

Id also like to know if anyone’s found a work around

cslotterback avatar May 29 '21 14:05 cslotterback

same here please help

dinceremre avatar Sep 15 '21 08:09 dinceremre