Hi,
I am trying to make a simple screen-cast with chrome extension. As i never got into MediaStream stuff i am almost noob with it for now. So far i am done with Recording video and saving it and recording audio in same time but i have two different streams for that, is there any way i can merge them and make a single stream like a single video with the recorded user screen and recorded audio.
I am using chrome.tabCapture.capture for recording screen and Navigator.getUserMedia() for recording audio.
I am maybe doing it wrong, as maybe there is a better way. Please suggest me something which can help me to fix this! :)
Sandeep Panda
co-founder, Hashnode
navigator.getUserMedia()is deprecated. Don't use it in any new projects. However, you can use MediaDevices.getUserMedia() which is experimental. You can specify{video:true, audio:true}as following to record both audio and video.navigator.mediaDevices.getUserMedia({video:true, audio:true}) .then(function(mediaStream) { ... }) .catch(function(error) { ... })This way you don't have to merge two streams into one.