MCPcopy
hub / github.com/webrtc/samples / handleRemoteAnswer

Function handleRemoteAnswer

src/content/datachannel/datatransfer/js/main.js:164–168  ·  view source on GitHub ↗
(desc)

Source from the content-addressed store, hash-verified

162}
163
164function handleRemoteAnswer(desc) {
165 pc2.setLocalDescription(desc);
166 console.log('Answer from pc2:\n', desc.sdp);
167 pc1.setRemoteDescription(desc);
168}
169
170function getOtherPc(pc) {
171 return (pc === pc1) ? pc2 : pc1;

Callers 1

handleLocalDescriptionFunction · 0.85

Calls 2

setLocalDescriptionMethod · 0.80
setRemoteDescriptionMethod · 0.80

Tested by

no test coverage detected