mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-30 11:14:27 +08:00
Merge pull request #3829 from martinduparc/patch-1
Case change and callbacks for addIceCandidate
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
var config: RTCConfiguration =
|
||||
{ iceServers: [{ url: "stun.l.google.com:19302" }] };
|
||||
var constraints: RTCMediaConstraints =
|
||||
{ mandatory: { OfferToReceiveAudio: true, OfferToReceiveVideo: true } };
|
||||
{ mandatory: { offerToReceiveAudio: true, offerToReceiveVideo: true } };
|
||||
|
||||
var peerConnection: RTCPeerConnection =
|
||||
new RTCPeerConnection(config, constraints);
|
||||
|
||||
Vendored
+5
-3
@@ -71,8 +71,8 @@ interface RTCMediaConstraints {
|
||||
}
|
||||
|
||||
interface RTCMediaOfferConstraints {
|
||||
OfferToReceiveAudio: boolean;
|
||||
OfferToReceiveVideo: boolean;
|
||||
offerToReceiveAudio: boolean;
|
||||
offerToReceiveVideo: boolean;
|
||||
}
|
||||
|
||||
interface RTCSessionDescriptionInit {
|
||||
@@ -261,7 +261,9 @@ interface RTCPeerConnection {
|
||||
signalingState: string; // RTCSignalingState; see TODO(1)
|
||||
updateIce(configuration?: RTCConfiguration,
|
||||
constraints?: RTCMediaConstraints): void;
|
||||
addIceCandidate(candidate: RTCIceCandidate): void;
|
||||
addIceCandidate(candidate:RTCIceCandidate,
|
||||
successCallback:() => void,
|
||||
failureCallback:RTCPeerConnectionErrorCallback): void;
|
||||
iceGatheringState: string; // RTCIceGatheringState; see TODO(1)
|
||||
iceConnectionState: string; // RTCIceConnectionState; see TODO(1)
|
||||
getLocalStreams(): MediaStream[];
|
||||
|
||||
Reference in New Issue
Block a user