navigator.mediaDevices.getUserMedia()
to capture MediaStreams
. For screen recording, we use navigator.mediaDevices.getDisplayMedia()
instead.RTCPeerConnection
interface. This is the central point for establishing and controlling the connection between two peers in WebRTC.