streamproc / MediaStreamRecorder

Cross browser audio/video/screen recording. It supports Chrome, Firefox, Opera and Microsoft Edge. It even works on Android browsers. It follows latest MediaRecorder API standards and provides similar APIs.
https://www.webrtc-experiment.com/msr/
MIT License
2.62k stars 563 forks source link

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

Open vishnusadanandan opened 4 years ago

vishnusadanandan commented 4 years ago

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
}
yi-ge commented 4 years ago

I have the same problem.

cslotterback commented 3 years ago

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

dinceremre commented 2 years ago

same here please help