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

Unified Diff: talk/examples/objc/AppRTCDemo/ARDSDPUtils.h

Issue 1187573004: iOS HW H264 support. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Unit tests Created 5 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698