Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vishnusadanandan opened this issue Jan 29, 2020 · 3 comments

Comments

@vishnusadanandan
Copy link

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
Copy link

yi-ge commented Aug 31, 2020

I have the same problem.

@cslotterback
Copy link

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

@dinceremre
Copy link

same here
please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants