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

Unified Diff: webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.h

Issue 2735303004: Add video codec setting to AppRTCMobile on iOS. (Closed)
Patch Set: Fix AppRTCMobile on Mac. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.h
diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.h b/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.h
index 602a464c8d600bab701fed7ba99b5dc1a5171605..0eb7b31aebbecc1726268c4ea576a97867d28af0 100644
--- a/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.h
+++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDSettingsModel.h
@@ -49,6 +49,26 @@ NS_ASSUME_NONNULL_BEGIN
- (BOOL)storeVideoResoultionConstraint:(NSString *)constraint;
/**
+ * Returns array of available video codecs.
+ */
+- (NSArray<NSString *> *)availableVideoCodecs;
+
+/**
+ * Returns current video codec setting from store if present.
daniela-webrtc 2017/03/20 13:10:06 This documentation can be improved slightly. Sugge
+ */
+- (NSString *)currentVideoCodecSettingFromStore;
+
+/**
+ * Stores the provided video codec setting into the store.
+ *
+ * If the provided constraint is not part of the available video codecs
daniela-webrtc 2017/03/20 13:10:07 provided constraint -> provided video codec
+ * the store operation will not be executed and NO will be returned.
+ * @param video codec settings the string to be stored.
+ * @return YES/NO depending on success.
+ */
+- (BOOL)storeVideoCodecSetting:(NSString *)videoCodec;
+
+/**
* Converts the current media constraints from store into dictionary with RTCMediaConstraints
* values.
*

Powered by Google App Engine
This is Rietveld 408576698