Merge pull request #10583 from liujinxing/types-2.0

fix(WebRTC): fix RTCMediaConstraints error.
This commit is contained in:
Nathan Shively-Sanders
2016-08-12 07:33:12 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ var config: RTCConfiguration = {
iceCandidatePoolSize: 5
};
var constraints: RTCMediaConstraints =
{ mandatory: { offerToReceiveAudio: true, offerToReceiveVideo: true } };
{ mandatory: { OfferToReceiveAudio: true, OfferToReceiveVideo: true } };
var peerConnection: RTCPeerConnection =
new RTCPeerConnection(config, constraints);
+2 -2
View File
@@ -94,8 +94,8 @@ interface RTCMediaConstraints {
}
interface RTCMediaOfferConstraints {
offerToReceiveAudio: boolean;
offerToReceiveVideo: boolean;
OfferToReceiveAudio: boolean;
OfferToReceiveVideo: boolean;
}
interface RTCSessionDescriptionInit {