DEV Community

Discussion on: Screen Recording in 10 lines of Vanilla JS

Collapse
 
sebastianstamm profile image
Sebastian Stamm

Sure! Instead of calling getDisplayMedia you would need to call getUserMedia, like this:

const stream = await navigator.mediaDevices.getUserMedia({
  audio: true
});

You can then plug this stream into the MediaRecorder like described in the post.

Collapse
 
musicjoeyoung profile image
Joe Young

Is it possible to record the internal audio (not the microphone, but the sound on the screen)?