| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // Temporary pseudo-constraints used to enable DataChannels | 110 // Temporary pseudo-constraints used to enable DataChannels |
| 111 static const char kEnableRtpDataChannels[]; // Enable RTP DataChannels | 111 static const char kEnableRtpDataChannels[]; // Enable RTP DataChannels |
| 112 // Google-specific constraint keys. | 112 // Google-specific constraint keys. |
| 113 // Temporary pseudo-constraint for enabling DSCP through JS. | 113 // Temporary pseudo-constraint for enabling DSCP through JS. |
| 114 static const char kEnableDscp[]; // googDscp | 114 static const char kEnableDscp[]; // googDscp |
| 115 // Constraint to enable IPv6 through JS. | 115 // Constraint to enable IPv6 through JS. |
| 116 static const char kEnableIPv6[]; // googIPv6 | 116 static const char kEnableIPv6[]; // googIPv6 |
| 117 // Temporary constraint to enable suspend below min bitrate feature. | 117 // Temporary constraint to enable suspend below min bitrate feature. |
| 118 static const char kEnableVideoSuspendBelowMinBitrate[]; | 118 static const char kEnableVideoSuspendBelowMinBitrate[]; |
| 119 // googSuspendBelowMinBitrate | 119 // googSuspendBelowMinBitrate |
| 120 static const char kNumUnsignalledRecvStreams[]; | |
| 121 // googNumUnsignalledRecvStreams | |
| 122 // Constraint to enable combined audio+video bandwidth estimation. | 120 // Constraint to enable combined audio+video bandwidth estimation. |
| 123 static const char kCombinedAudioVideoBwe[]; // googCombinedAudioVideoBwe | 121 static const char kCombinedAudioVideoBwe[]; // googCombinedAudioVideoBwe |
| 124 static const char kScreencastMinBitrate[]; // googScreencastMinBitrate | 122 static const char kScreencastMinBitrate[]; // googScreencastMinBitrate |
| 125 static const char kCpuOveruseDetection[]; // googCpuOveruseDetection | 123 static const char kCpuOveruseDetection[]; // googCpuOveruseDetection |
| 126 static const char kCpuUnderuseThreshold[]; // googCpuUnderuseThreshold | |
| 127 static const char kCpuOveruseThreshold[]; // googCpuOveruseThreshold | |
| 128 // Low cpu adaptation threshold for relative standard deviation of encode | |
| 129 // time. | |
| 130 static const char kCpuUnderuseEncodeRsdThreshold[]; | |
| 131 // High cpu adaptation threshold for relative standard deviation of encode | |
| 132 // time. | |
| 133 static const char kCpuOveruseEncodeRsdThreshold[]; | |
| 134 static const char kCpuOveruseEncodeUsage[]; // googCpuOveruseEncodeUsage | |
| 135 static const char kHighStartBitrate[]; // googHighStartBitrate | |
| 136 static const char kPayloadPadding[]; // googPayloadPadding | 124 static const char kPayloadPadding[]; // googPayloadPadding |
| 137 | 125 |
| 138 // The prefix of internal-only constraints whose JS set values should be | 126 // The prefix of internal-only constraints whose JS set values should be |
| 139 // stripped by Chrome before passed down to Libjingle. | 127 // stripped by Chrome before passed down to Libjingle. |
| 140 static const char kInternalConstraintPrefix[]; | 128 static const char kInternalConstraintPrefix[]; |
| 141 | 129 |
| 142 protected: | 130 protected: |
| 143 // Dtor protected as objects shouldn't be deleted via this interface | 131 // Dtor protected as objects shouldn't be deleted via this interface |
| 144 virtual ~MediaConstraintsInterface() {} | 132 virtual ~MediaConstraintsInterface() {} |
| 145 }; | 133 }; |
| 146 | 134 |
| 147 bool FindConstraint(const MediaConstraintsInterface* constraints, | 135 bool FindConstraint(const MediaConstraintsInterface* constraints, |
| 148 const std::string& key, bool* value, | 136 const std::string& key, bool* value, |
| 149 size_t* mandatory_constraints); | 137 size_t* mandatory_constraints); |
| 150 | 138 |
| 151 } // namespace webrtc | 139 } // namespace webrtc |
| 152 | 140 |
| 153 #endif // TALK_APP_WEBRTC_MEDIACONSTRAINTSINTERFACE_H_ | 141 #endif // TALK_APP_WEBRTC_MEDIACONSTRAINTSINTERFACE_H_ |
| OLD | NEW |