Updated demos so they work on FF, the createOffer api cannot have null parameters according to spec. Same applies to createAnswer.
R=juberti@google.com Review URL: https://webrtc-codereview.appspot.com/8219004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5503 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -129,10 +129,14 @@ function createConnection() {
|
||||
pc2.onicecandidate = iceCallback2;
|
||||
pc2.ondatachannel = receiveChannelCallback;
|
||||
|
||||
pc1.createOffer(gotDescription1, null, null);
|
||||
pc1.createOffer(gotDescription1, onCreateSessionDescriptionError);
|
||||
startButton.disabled = true;
|
||||
closeButton.disabled = false;
|
||||
}
|
||||
|
||||
function onCreateSessionDescriptionError(error) {
|
||||
trace('Failed to create session description: ' + error.toString());
|
||||
}
|
||||
|
||||
function sendData() {
|
||||
var data = dataChannelSend.value;
|
||||
@@ -163,7 +167,7 @@ function gotDescription1(desc) {
|
||||
pc1.setLocalDescription(desc);
|
||||
trace('Offer from pc1 \n' + desc.sdp);
|
||||
pc2.setRemoteDescription(desc);
|
||||
pc2.createAnswer(gotDescription2, null, null);
|
||||
pc2.createAnswer(gotDescription2, onCreateSessionDescriptionError);
|
||||
}
|
||||
|
||||
function gotDescription2(desc) {
|
||||
|
Reference in New Issue
Block a user