Merge pull request #7876 from GeniousG/master

RTCPeerConnection.d.ts & MediaStream.d.ts improvements
This commit is contained in:
Masahiro Wakame
2016-02-02 23:55:32 +09:00
3 changed files with 6 additions and 3 deletions
+3
View File
@@ -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;
+2 -2
View File
@@ -1,8 +1,8 @@
/// <reference path="MediaStream.d.ts" />
/// <reference path="MediaStream.d.ts" />
/// <reference path="RTCPeerConnection.d.ts" />
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 } };
+1 -1
View File
@@ -29,7 +29,7 @@ declare var RTCConfiguration: {
};
interface RTCIceServer {
url: string;
urls: string;
credential?: string;
}
declare var RTCIceServer: {