fix(WebRTC): fix RTCMediaConstraints error.

https://www.w3.org/TR/2013/WD-webrtc-20130910/
This commit is contained in:
Jacking Liu
2016-08-12 20:04:16 +08:00
parent 8ef6636c5b
commit 7f7e4f44be
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 {