From 1350c60376942b1f5c8a0f75881d1321ab2ac3c1 Mon Sep 17 00:00:00 2001 From: Hans-Georg Haberl Date: Fri, 29 Jan 2016 17:13:54 +0100 Subject: [PATCH] "url" is deprecated in interface RTCIceServer, changed to "urls' instead; --- webrtc/RTCPeerConnection-tests.ts | 4 ++-- webrtc/RTCPeerConnection.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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: {