I have a canvas stream using canvas.captureStream(). I have another video stream from webrtc video call. Now i want to mix canvas stream with audio tracks of the video stream.How can i do that?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
Use the
MediaStream
constructor available in Firefox and Chrome 56, to combine tracks into a new stream:The following works for me in Firefox (Use https fiddle in Chrome, though it errors on recording):