Index: webrtc/modules/video_coding/codecs/h264/h264_objc.mm |
diff --git a/webrtc/modules/video_coding/codecs/h264/h264_objc.mm b/webrtc/modules/video_coding/codecs/h264/h264_objc.mm |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9d66beaf662564e465e0fe170e0599ff7ba212a2 |
--- /dev/null |
+++ b/webrtc/modules/video_coding/codecs/h264/h264_objc.mm |
@@ -0,0 +1,33 @@ |
+/* |
+ * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
+ * |
+ * Use of this source code is governed by a BSD-style license |
+ * that can be found in the LICENSE file in the root of the source |
+ * tree. An additional intellectual property rights grant can be found |
+ * in the file PATENTS. All contributing project authors may |
+ * be found in the AUTHORS file in the root of the source tree. |
+ * |
+ */ |
+ |
+#include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
+ |
+#if defined(WEBRTC_IOS) |
+#import <UIKit/UIKit.h> |
+#endif |
+ |
+namespace webrtc { |
+ |
+bool IsH264CodecSupportedObjC() { |
+#if defined(WEBRTC_OBJC_H264) && \ |
+ defined(WEBRTC_VIDEO_TOOLBOX_SUPPORTED) && \ |
+ defined(WEBRTC_IOS) |
+ // Supported on iOS8+. |
+ return [[[UIDevice currentDevice] systemVersion] doubleValue] >= 8.0; |
+#else |
+ // Not supported on OS/X until we stop mixing libstdc++ and libc++ on |
pbos-webrtc
2015/06/25 20:20:14
Add this as a TODO(tkchin)
tkchin_webrtc
2015/06/25 21:37:49
Done.
|
+ // OSX 10.9. |
+ return false; |
+#endif |
+} |
+ |
+} // namespace webrtc |