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

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: Move unittest file. 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/app/webrtc/objc/public/RTCVideoRenderer.h b/talk/examples/objc/AppRTCDemo/ARDSDPUtils.h
similarity index 77%
copy from talk/app/webrtc/objc/public/RTCVideoRenderer.h
copy to talk/examples/objc/AppRTCDemo/ARDSDPUtils.h
index c837b1c5ac484e4a7e0569dbeb448fa7da2ac651..2f14e6dec0b40b77b1f6d03be0ef639387b4d0db 100644
--- a/talk/app/webrtc/objc/public/RTCVideoRenderer.h
+++ b/talk/examples/objc/AppRTCDemo/ARDSDPUtils.h
@@ -1,6 +1,6 @@
/*
* libjingle
- * Copyright 2013 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:
@@ -26,18 +26,16 @@
*/
#import <Foundation/Foundation.h>
-#if TARGET_OS_IPHONE
-#import <UIKit/UIKit.h>
-#endif
-@class RTCI420Frame;
+@class RTCSessionDescription;
-@protocol RTCVideoRenderer<NSObject>
+@interface ARDSDPUtils : NSObject
-// The size of the frame.
-- (void)setSize:(CGSize)size;
-
-// The frame to be displayed.
-- (void)renderFrame:(RTCI420Frame*)frame;
+// 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