muaz-khan / RecordRTC

RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
https://www.webrtc-experiment.com/RecordRTC/
MIT License
6.49k stars 1.75k forks source link

merge local audio&video and remote audio to a single file #735

Closed MasterShi closed 3 years ago

MasterShi commented 3 years ago

I have tried two ways: No1: var localRecorder = RecordRTC([localStream, remoteStream], {type: 'video' }); localRecorder.startRecording() No2: localStream.addTrack(remoteStream.getAudioTracks()[0]); var localRecorder = RecordRTC(localStream, {type: 'video' }); localRecorder.startRecording()

But none of them is works

How to merge local audio&video with remote audio to a single file ?

MasterShi commented 3 years ago

use AudioContext