mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
fix(WebRTC): fix RTCMediaConstraints error.
https://www.w3.org/TR/2013/WD-webrtc-20130910/
This commit is contained in:
@@ -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);
|
||||
|
||||
Vendored
+2
-2
@@ -94,8 +94,8 @@ interface RTCMediaConstraints {
|
||||
}
|
||||
|
||||
interface RTCMediaOfferConstraints {
|
||||
offerToReceiveAudio: boolean;
|
||||
offerToReceiveVideo: boolean;
|
||||
OfferToReceiveAudio: boolean;
|
||||
OfferToReceiveVideo: boolean;
|
||||
}
|
||||
|
||||
interface RTCSessionDescriptionInit {
|
||||
|
||||
Reference in New Issue
Block a user