Skip to content

Commit

Permalink
Clarify flow of SDP exchanges
Browse files Browse the repository at this point in the history
close w3c#388
  • Loading branch information
dontcallmedom committed Jan 6, 2016
1 parent b665e48 commit b24ca09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webrtc.html
Expand Up @@ -6765,8 +6765,11 @@ <h3>Simple Peer-to-peer Example</h3>
signalingChannel.send(JSON.stringify({ "desc": pc.localDescription }));
})
.catch(logError);
} else
} else if (desc.type == "answer") {
pc.setRemoteDescription(desc).catch(logError);
} else {
log("Unsupported SDP type. Your code may differ here.");
}
} else
pc.addIceCandidate(message.candidate).catch(logError);
};
Expand Down

0 comments on commit b24ca09

Please sign in to comment.