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