diff --git a/webrtc/MediaStream.d.ts b/webrtc/MediaStream.d.ts index 37b605592..a7bebb857 100644 --- a/webrtc/MediaStream.d.ts +++ b/webrtc/MediaStream.d.ts @@ -174,6 +174,9 @@ interface NavigatorGetUserMedia { errorCallback: (error: MediaStreamError) => void): void; } +// to use with adapter.js, see: https://github.com/webrtc/adapter +declare var getUserMedia: NavigatorGetUserMedia; + interface Navigator { getUserMedia: NavigatorGetUserMedia; diff --git a/webrtc/RTCPeerConnection-tests.ts b/webrtc/RTCPeerConnection-tests.ts index f25ad81df..b85c61806 100644 --- a/webrtc/RTCPeerConnection-tests.ts +++ b/webrtc/RTCPeerConnection-tests.ts @@ -1,8 +1,8 @@ -/// +/// /// var config: RTCConfiguration = - { iceServers: [{ url: "stun.l.google.com:19302" }] }; + { iceServers: [{ urls: "stun.l.google.com:19302" }] }; var constraints: RTCMediaConstraints = { mandatory: { offerToReceiveAudio: true, offerToReceiveVideo: true } }; diff --git a/webrtc/RTCPeerConnection.d.ts b/webrtc/RTCPeerConnection.d.ts index 0e186fd27..661b9685b 100644 --- a/webrtc/RTCPeerConnection.d.ts +++ b/webrtc/RTCPeerConnection.d.ts @@ -29,7 +29,7 @@ declare var RTCConfiguration: { }; interface RTCIceServer { - url: string; + urls: string; credential?: string; } declare var RTCIceServer: {