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.46k stars 1.75k forks source link

[question] Can RecordRTC record the game's canvas + microphone audio + ingame audio? #789

Open marcusx2 opened 2 years ago

marcusx2 commented 2 years ago

Title says it all. I know how to record the game's canvas with microphone audio using the MediaRecorder api and following this SO post, but I don't know how to add the audio from the game itself into the stream, if it's even possible(any audio that plays in the game while I'm recording I want it to be recorded in the stream as well). Can RecordRTC do this? Or is it simply not possible? Thanks!

A small constraint, is that using the Screen Capture API is not a valid solution. It needs to work on mobile as well. So I'm wondering if RecordRTC can do this with the MediaRecoder API or something.