| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #import "ARDAppDelegate.h" | 11 #import "ARDAppDelegate.h" |
| 12 | 12 |
| 13 #import "WebRTC/RTCFieldTrials.h" | 13 #import "WebRTC/RTCFieldTrials.h" |
| 14 #import "WebRTC/RTCLogging.h" | 14 #import "WebRTC/RTCLogging.h" |
| 15 #import "WebRTC/RTCSSLAdapter.h" | 15 #import "WebRTC/RTCSSLAdapter.h" |
| 16 #import "WebRTC/RTCTracing.h" | 16 #import "WebRTC/RTCTracing.h" |
| 17 | 17 |
| 18 #import "ARDMainViewController.h" | 18 #import "ARDMainViewController.h" |
| 19 | 19 |
| 20 @implementation ARDAppDelegate { | 20 @implementation ARDAppDelegate { |
| 21 UIWindow *_window; | 21 UIWindow *_window; |
| 22 } | 22 } |
| 23 | 23 |
| 24 #pragma mark - UIApplicationDelegate methods | 24 #pragma mark - UIApplicationDelegate methods |
| 25 | 25 |
| 26 - (BOOL)application:(UIApplication *)application | 26 - (BOOL)application:(UIApplication *)application |
| 27 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | 27 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { |
| 28 NSDictionary *fieldTrials = @{ | 28 NSDictionary *fieldTrials = @{ |
| 29 kRTCFieldTrialH264HighProfileKey: kRTCFieldTrialEnabledValue, | 29 kRTCFieldTrialH264HighProfileKey : kRTCFieldTrialEnabledValue, |
| 30 kRTCFieldTrialAudioSendSideBweKey : kRTCFieldTrialEnabledValue |
| 30 }; | 31 }; |
| 31 RTCInitFieldTrialDictionary(fieldTrials); | 32 RTCInitFieldTrialDictionary(fieldTrials); |
| 32 RTCInitializeSSL(); | 33 RTCInitializeSSL(); |
| 33 RTCSetupInternalTracer(); | 34 RTCSetupInternalTracer(); |
| 34 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | 35 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
| 35 [_window makeKeyAndVisible]; | 36 [_window makeKeyAndVisible]; |
| 36 ARDMainViewController *viewController = [[ARDMainViewController alloc] init]; | 37 ARDMainViewController *viewController = [[ARDMainViewController alloc] init]; |
| 37 | 38 |
| 38 UINavigationController *root = | 39 UINavigationController *root = |
| 39 [[UINavigationController alloc] initWithRootViewController:viewController]
; | 40 [[UINavigationController alloc] initWithRootViewController:viewController]
; |
| 40 root.navigationBar.translucent = NO; | 41 root.navigationBar.translucent = NO; |
| 41 _window.rootViewController = root; | 42 _window.rootViewController = root; |
| 42 | 43 |
| 43 #if defined(NDEBUG) | 44 #if defined(NDEBUG) |
| 44 // In debug builds the default level is LS_INFO and in non-debug builds it is | 45 // In debug builds the default level is LS_INFO and in non-debug builds it is |
| 45 // disabled. Continue to log to console in non-debug builds, but only | 46 // disabled. Continue to log to console in non-debug builds, but only |
| 46 // warnings and errors. | 47 // warnings and errors. |
| 47 RTCSetMinDebugLogLevel(RTCLoggingSeverityWarning); | 48 RTCSetMinDebugLogLevel(RTCLoggingSeverityWarning); |
| 48 #endif | 49 #endif |
| 49 | 50 |
| 50 return YES; | 51 return YES; |
| 51 } | 52 } |
| 52 | 53 |
| 53 - (void)applicationWillTerminate:(UIApplication *)application { | 54 - (void)applicationWillTerminate:(UIApplication *)application { |
| 54 RTCShutdownInternalTracer(); | 55 RTCShutdownInternalTracer(); |
| 55 RTCCleanupSSL(); | 56 RTCCleanupSSL(); |
| 56 } | 57 } |
| 57 | 58 |
| 58 @end | 59 @end |
| OLD | NEW |