From 7f7e4f44be6f27b71e5fabfa4af6cf2ec725edf1 Mon Sep 17 00:00:00 2001 From: Jacking Liu Date: Fri, 12 Aug 2016 20:04:16 +0800 Subject: [PATCH] fix(WebRTC): fix RTCMediaConstraints error. https://www.w3.org/TR/2013/WD-webrtc-20130910/ --- webrtc/RTCPeerConnection-tests.ts | 2 +- webrtc/RTCPeerConnection.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {