mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #7876 from GeniousG/master
RTCPeerConnection.d.ts & MediaStream.d.ts improvements
This commit is contained in:
Vendored
+3
@@ -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;
|
||||
|
||||
|
||||
@@ -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 } };
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -29,7 +29,7 @@ declare var RTCConfiguration: {
|
||||
};
|
||||
|
||||
interface RTCIceServer {
|
||||
url: string;
|
||||
urls: string;
|
||||
credential?: string;
|
||||
}
|
||||
declare var RTCIceServer: {
|
||||
|
||||
Reference in New Issue
Block a user