I tried the code below
localPeerConnection.addTrack(await localStream) remotePeerConnection.ontrack = () => { const remoteStreamVideoElement =