Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(784)

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCMediaConstraints.mm

Issue 2908013002: Add media constraint-key constants for generating offers and answers (Closed)
Patch Set: Add media constraint-key constants for generating offers and answers Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/sdk/objc/Framework/Headers/WebRTC/RTCMediaConstraints.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 17 matching lines...) Expand all
28 @(webrtc::MediaConstraintsInterface::kMaxHeight); 28 @(webrtc::MediaConstraintsInterface::kMaxHeight);
29 NSString * const kRTCMediaConstraintsMinFrameRate = 29 NSString * const kRTCMediaConstraintsMinFrameRate =
30 @(webrtc::MediaConstraintsInterface::kMinFrameRate); 30 @(webrtc::MediaConstraintsInterface::kMinFrameRate);
31 NSString * const kRTCMediaConstraintsMaxFrameRate = 31 NSString * const kRTCMediaConstraintsMaxFrameRate =
32 @(webrtc::MediaConstraintsInterface::kMaxFrameRate); 32 @(webrtc::MediaConstraintsInterface::kMaxFrameRate);
33 NSString * const kRTCMediaConstraintsLevelControl = 33 NSString * const kRTCMediaConstraintsLevelControl =
34 @(webrtc::MediaConstraintsInterface::kLevelControl); 34 @(webrtc::MediaConstraintsInterface::kLevelControl);
35 NSString * const kRTCMediaConstraintsAudioNetworkAdaptorConfig = 35 NSString * const kRTCMediaConstraintsAudioNetworkAdaptorConfig =
36 @(webrtc::MediaConstraintsInterface::kAudioNetworkAdaptorConfig); 36 @(webrtc::MediaConstraintsInterface::kAudioNetworkAdaptorConfig);
37 37
38 NSString * const kRTCMediaConstraintsIceRestart =
39 @(webrtc::MediaConstraintsInterface::kIceRestart);
40 NSString * const kRTCMediaConstraintsOfferToReceiveAudio =
41 @(webrtc::MediaConstraintsInterface::kOfferToReceiveAudio);
42 NSString * const kRTCMediaConstraintsOfferToReceiveVideo =
43 @(webrtc::MediaConstraintsInterface::kOfferToReceiveVideo);
44 NSString * const kRTCMediaConstraintsVoiceActivityDetection =
45 @(webrtc::MediaConstraintsInterface::kVoiceActivityDetection);
46
38 NSString * const kRTCMediaConstraintsValueTrue = 47 NSString * const kRTCMediaConstraintsValueTrue =
39 @(webrtc::MediaConstraintsInterface::kValueTrue); 48 @(webrtc::MediaConstraintsInterface::kValueTrue);
40 NSString * const kRTCMediaConstraintsValueFalse = 49 NSString * const kRTCMediaConstraintsValueFalse =
41 @(webrtc::MediaConstraintsInterface::kValueFalse); 50 @(webrtc::MediaConstraintsInterface::kValueFalse);
42 51
43 namespace webrtc { 52 namespace webrtc {
44 53
45 MediaConstraints::~MediaConstraints() {} 54 MediaConstraints::~MediaConstraints() {}
46 55
47 MediaConstraints::MediaConstraints() {} 56 MediaConstraints::MediaConstraints() {}
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 key.stdString, configValue)); 129 key.stdString, configValue));
121 } else { 130 } else {
122 nativeConstraints.push_back(webrtc::MediaConstraintsInterface::Constraint( 131 nativeConstraints.push_back(webrtc::MediaConstraintsInterface::Constraint(
123 key.stdString, value.stdString)); 132 key.stdString, value.stdString));
124 } 133 }
125 } 134 }
126 return nativeConstraints; 135 return nativeConstraints;
127 } 136 }
128 137
129 @end 138 @end
OLDNEW
« no previous file with comments | « no previous file | webrtc/sdk/objc/Framework/Headers/WebRTC/RTCMediaConstraints.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698