diff --git a/webrtc/RTCPeerConnection-tests.ts b/webrtc/RTCPeerConnection-tests.ts index fec016f394..5bf7707a10 100644 --- a/webrtc/RTCPeerConnection-tests.ts +++ b/webrtc/RTCPeerConnection-tests.ts @@ -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); diff --git a/webrtc/RTCPeerConnection.d.ts b/webrtc/RTCPeerConnection.d.ts index 137b1e8892..e78df2e5e3 100644 --- a/webrtc/RTCPeerConnection.d.ts +++ b/webrtc/RTCPeerConnection.d.ts @@ -94,8 +94,8 @@ interface RTCMediaConstraints { } interface RTCMediaOfferConstraints { - offerToReceiveAudio: boolean; - offerToReceiveVideo: boolean; + OfferToReceiveAudio: boolean; + OfferToReceiveVideo: boolean; } interface RTCSessionDescriptionInit {