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

Video recording issue: Audio playing in the background ( #857

Open MichaelYogar opened 8 months ago

MichaelYogar commented 8 months ago

Hi, I am new to the world of audio/video recording and I have this problem:

When I am recording a video of myself, and I have audio (music) playing in the background in another browser tab, e.g. a yt video, the music gets muffled/distorted.

Same issue if I am listening to Spotify in the background.

Does anybody have any info on why this is and what I could do to fix it?

recordRTCRef.current = new RecordRTCPromisesHandler(stream, {
    type: "video",
});