我尝试了下面的代码 localPeerConnection.addTrack(await localStream) remotePeerConnection.ontrack = () => { const remoteStreamVideoElement = document.querySelector("#remoteStreamVideoElement") remoteStreamVideoElement.srcObject = localStream remoteStreamVideoElement.onloadedmetadata = () => remoteStreamVideoElement.play() }但它返回了这个错误TypeError: Argument 1 of RTCPeerConnection.addTrack does not implement interface MediaStreamTrack.
添加回答
举报
0/150
提交
取消