Case change and callbacks for addIceCandidate

This commit is contained in:
Martin D.
2015-03-08 21:56:09 -04:00
parent a45ffabb4e
commit edc17cd1b4
+5 -3
View File
@@ -71,8 +71,8 @@ interface RTCMediaConstraints {
}
interface RTCMediaOfferConstraints {
OfferToReceiveAudio: boolean;
OfferToReceiveVideo: boolean;
offerToReceiveAudio: boolean;
offerToReceiveVideo: boolean;
}
interface RTCSessionDescriptionInit {
@@ -261,7 +261,9 @@ interface RTCPeerConnection {
signalingState: string; // RTCSignalingState; see TODO(1)
updateIce(configuration?: RTCConfiguration,
constraints?: RTCMediaConstraints): void;
addIceCandidate(candidate: RTCIceCandidate): void;
addIceCandidate(candidate:RTCIceCandidate,
successCallback:() => void,
failureCallback:RTCPeerConnectionErrorCallback): void;
iceGatheringState: string; // RTCIceGatheringState; see TODO(1)
iceConnectionState: string; // RTCIceConnectionState; see TODO(1)
getLocalStreams(): MediaStream[];