Index: talk/examples/objc/AppRTCDemo/ARDSDPUtils.h |
diff --git a/talk/examples/objc/AppRTCDemo/ARDMessageResponse.h b/talk/examples/objc/AppRTCDemo/ARDSDPUtils.h |
similarity index 77% |
copy from talk/examples/objc/AppRTCDemo/ARDMessageResponse.h |
copy to talk/examples/objc/AppRTCDemo/ARDSDPUtils.h |
index b1e6938f4cc906b07c14cb6b9f9e1bc6a4a793e8..2f14e6dec0b40b77b1f6d03be0ef639387b4d0db 100644 |
--- a/talk/examples/objc/AppRTCDemo/ARDMessageResponse.h |
+++ b/talk/examples/objc/AppRTCDemo/ARDSDPUtils.h |
@@ -1,6 +1,6 @@ |
/* |
* libjingle |
- * Copyright 2014 Google Inc. |
+ * Copyright 2015 Google Inc. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are met: |
@@ -27,17 +27,15 @@ |
#import <Foundation/Foundation.h> |
-typedef NS_ENUM(NSInteger, ARDMessageResultType) { |
- kARDMessageResultTypeUnknown, |
- kARDMessageResultTypeSuccess, |
- kARDMessageResultTypeInvalidRoom, |
- kARDMessageResultTypeInvalidClient |
-}; |
+@class RTCSessionDescription; |
-@interface ARDMessageResponse : NSObject |
+@interface ARDSDPUtils : NSObject |
-@property(nonatomic, readonly) ARDMessageResultType result; |
- |
-+ (ARDMessageResponse *)responseFromJSONData:(NSData *)data; |
+// Updates the original SDP description to instead prefer the specified video |
+// codec. We do this by placing the specified codec at the beginning of the |
+// codec list if it exists in the sdp. |
++ (RTCSessionDescription *) |
+ descriptionForDescription:(RTCSessionDescription *)description |
+ preferredVideoCodec:(NSString *)codec; |
@end |