srcElement is not defined in FF?
This commit is contained in:
parent
cb5df3be84
commit
a7e162b002
|
@ -63,14 +63,14 @@ function TraceablePeerConnection(ice_config, constraints) {
|
||||||
};
|
};
|
||||||
this.onsignalingstatechange = null;
|
this.onsignalingstatechange = null;
|
||||||
this.peerconnection.onsignalingstatechange = function (event) {
|
this.peerconnection.onsignalingstatechange = function (event) {
|
||||||
self.trace('onsignalingstatechange', event.srcElement.signalingState);
|
self.trace('onsignalingstatechange', self.signalingState);
|
||||||
if (self.onsignalingstatechange !== null) {
|
if (self.onsignalingstatechange !== null) {
|
||||||
self.onsignalingstatechange(event);
|
self.onsignalingstatechange(event);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.oniceconnectionstatechange = null;
|
this.oniceconnectionstatechange = null;
|
||||||
this.peerconnection.oniceconnectionstatechange = function (event) {
|
this.peerconnection.oniceconnectionstatechange = function (event) {
|
||||||
self.trace('oniceconnectionstatechange', event.srcElement.iceConnectionState);
|
self.trace('oniceconnectionstatechange', self.iceConnectionState);
|
||||||
if (self.oniceconnectionstatechange !== null) {
|
if (self.oniceconnectionstatechange !== null) {
|
||||||
self.oniceconnectionstatechange(event);
|
self.oniceconnectionstatechange(event);
|
||||||
}
|
}
|
||||||
|
@ -619,4 +619,4 @@ function getUserMediaWithConstraints(um, success_callback, failure_callback, res
|
||||||
failure_callback(e);
|
failure_callback(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue