mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
added optional media constraints
This commit is contained in:
Vendored
+11
-1
@@ -38,9 +38,19 @@ declare var IceState: {
|
||||
new (): IceState;
|
||||
}
|
||||
|
||||
// For Chrome, look at the code here: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/libjingle/source/talk/app/webrtc/webrtcsession.cc&sq=package:chromium&dr=C&l=63
|
||||
interface OptionalMediaConstraint {
|
||||
// When true, will use DTLS/SCTP data channels
|
||||
DtlsSrtpKeyAgreement?: boolean;
|
||||
// When true will use Rtp-based data channels (depreicated)
|
||||
RtpDataChannels?: boolean;
|
||||
}
|
||||
|
||||
// ks 12/20/12 - There's more here that doesn't seem to be documented very well yet.
|
||||
// http://www.w3.org/TR/2013/WD-webrtc-20130910/
|
||||
interface MediaConstraints {
|
||||
mandatory: MediaOfferConstraints;
|
||||
mandatory?: MediaOfferConstraints;
|
||||
optional?: OptionalMediaConstraint[]
|
||||
}
|
||||
|
||||
interface MediaOfferConstraints {
|
||||
|
||||
Reference in New Issue
Block a user