@@ -7,5 +7,57 @@ class MediaConstraints {
7
7
class KeyValuePair {
8
8
KeyValuePair ({this .key, this .value});
9
9
final String key;
10
- final String value;
10
+ final dynamic value;
11
11
}
12
+
13
+ // Audio constraints.
14
+ const String kGoogEchoCancellation = 'googEchoCancellation' ;
15
+ const String kAutoGainControl = 'googAutoGainControl' ;
16
+ const String kExperimentalAutoGainControl = 'googAutoGainControl2' ;
17
+ const String kNoiseSuppression = 'googNoiseSuppression' ;
18
+ const String kExperimentalNoiseSuppression = 'googNoiseSuppression2' ;
19
+ const String kHighpassFilter = 'googHighpassFilter' ;
20
+ const String kTypingNoiseDetection = 'googTypingNoiseDetection' ;
21
+ const String kAudioMirroring = 'googAudioMirroring' ;
22
+ const String kAudioNetworkAdaptorConfig = 'googAudioNetworkAdaptorConfig' ;
23
+
24
+ // Constraint keys for CreateOffer / CreateAnswer defined in W3C specification.
25
+ const String kOfferToReceiveAudio = 'OfferToReceiveAudio' ;
26
+ const String kOfferToReceiveVideo = 'OfferToReceiveVideo' ;
27
+ const String kVoiceActivityDetection = 'VoiceActivityDetection' ;
28
+ const String kIceRestart = 'IceRestart' ;
29
+
30
+ // Google specific constraint for BUNDLE enable/disable.
31
+ const String kUseRtpMux = 'googUseRtpMUX' ;
32
+
33
+ // Below constraints should be used during PeerConnection construction.
34
+ final String kEnableDtlsSrtp = 'DtlsSrtpKeyAgreement' ;
35
+ final String kEnableRtpDataChannels = 'RtpDataChannels' ;
36
+
37
+ // Google-specific constraint keys.
38
+ const String kEnableDscp = 'googDscp' ;
39
+ const String kEnableIPv6 = 'googIPv6' ;
40
+ const String kEnableVideoSuspendBelowMinBitrate = 'googSuspendBelowMinBitrate' ;
41
+ const String kCombinedAudioVideoBwe = 'googCombinedAudioVideoBwe' ;
42
+ const String kScreencastMinBitrate = 'googScreencastMinBitrate' ;
43
+
44
+ // TODO(ronghuawu): Remove once cpu overuse detection is stable.
45
+ const String kCpuOveruseDetection = 'googCpuOveruseDetection' ;
46
+ const String kRawPacketizationForVideoEnabled =
47
+ 'googRawPacketizationForVideoEnabled' ;
48
+ const String kNumSimulcastLayers = 'googNumSimulcastLayers' ;
49
+
50
+ // Video constraints.
51
+ const String kMinAspectRatio = 'minAspectRatio' ;
52
+ const String kMaxAspectRatio = 'maxAspectRatio' ;
53
+ const String kMaxWidth = 'maxWidth' ;
54
+ const String kMinWidth = 'minWidth' ;
55
+ const String kMaxHeight = 'maxHeight' ;
56
+ const String kMinHeight = 'minHeight' ;
57
+ const String kMaxFrameRate = 'maxFrameRate' ;
58
+ const String kMinFrameRate = 'minFrameRate' ;
59
+
60
+ // MediaDevices
61
+ const String kSourceId = 'sourceId' ;
62
+
63
+ enum FacingMode { User , Environment }
0 commit comments